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

+ 2 - 7
Jenkinsfile

@@ -6,7 +6,7 @@ pipeline {
     string(
       name: "build_repo",
       defaultValue: "prod",
-      description: "Repository to build from. If not presented - build will not run."
+      description: "Repository to build from. To not build - set parameter to 'none'."
     )
     string(
       name: "service_update",
@@ -16,12 +16,7 @@ pipeline {
   }
   stages {
     stage("Build") {
-      when { 
-        allOf {
-          expression { build_repo != null }
-          expression { not build_repo.empty }
-        }
-      }
+      when { expression { build_repo != "none" } }
       steps {
         echo "Building with repo $build_repo"
         sh 'pwd'