Vadim Surkov 7 роки тому
батько
коміт
b58a2a5698
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      Jenkinsfile

+ 4 - 4
Jenkinsfile

@@ -6,10 +6,10 @@ pipeline {
     git_url=""
   }
   parameters {
-    booleanParam(
+    string(
       name: "build",
-      defaultValue: true,
-      description: "To build image set built to 'true'. To not build - set parameter to 'false'."
+      defaultValue: "true",
+      description: "To build image set built to 'true'. To not build, set parameter to anything else - 'false'."
     )
     string(
       name: "repo",
@@ -24,7 +24,7 @@ pipeline {
   }
   stages {
     stage("Build") {
-      when { expression { build == true } }
+      when { expression { build == "true" } }
       steps {
         echo "Building with repo $repo"
         sh '''pwd