move slack notification only for heat
Change-Id: Ibcea096c8288091cf71906828ebe3240fec5c081
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index 59e885f..80c8fff 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -546,14 +546,15 @@
throw e
} finally {
- // send notification
- common.sendNotification(currentBuild.result,HEAT_STACK_NAME,["slack"])
//
// Clean
//
if (STACK_TYPE == 'heat') {
+ // send notification
+ common.sendNotification(currentBuild.result, HEAT_STACK_NAME, ["slack"])
+
if (HEAT_STACK_DELETE.toBoolean() == true) {
common.errorMsg('Heat job cleanup triggered')
stage('Trigger cleanup job') {