|
@@ -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
|