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