Vadim Surkov 7 years ago
parent
commit
e82696660e
1 changed files with 11 additions and 11 deletions
  1. 11 11
      Jenkinsfile

+ 11 - 11
Jenkinsfile

@@ -23,21 +23,21 @@ pipeline {
         }
       }
       steps {
-        echo "Building with repo $build_repo and updating $service_update"
+        echo "Building with repo $build_repo"
         sh 'pwd'
       }
-      post {
-        always {
-          echo "Step always"
-        }
-        changed {
-          echo "Step change"
-        }
-        failure {
-          echo "Step failure"
+    }
+    stage("Update") {
+      when { 
+        allOf {
+          expression { service_update != null }
+          expression { not service_update.empty }
         }
       }
-    }
+      steps {
+        echo "Updating $service_update"
+        sh 'ls'
+      }
   }
   post {
     always {