diff --git a/pipelines/monolithic.Jenkinsfile b/pipelines/monolithic.Jenkinsfile index d17cd06..158f8f6 100644 --- a/pipelines/monolithic.Jenkinsfile +++ b/pipelines/monolithic.Jenkinsfile @@ -173,6 +173,9 @@ pipeline { booleanParam ( name: 'FORCE_BUILD' ) + booleanParam ( + name: 'BUILD_HELM_CHARTS' + ) booleanParam ( name: 'FORCE_BUILD_WHEELS' ) @@ -276,6 +279,7 @@ or with paths relative to repo root: // building docker images, if requested in order to replace // image tags by locally-built images stage('HELM:initial') { + when { expression { params.BUILD_HELM_CHARTS } } steps { runPart ("build-helm-charts", IMG_PARAMS) runPart ("publish-helm-charts", IMG_PARAMS) @@ -315,7 +319,7 @@ or with paths relative to repo root: stage('IMAGES:helm') { // Rebuild helm charts even if image builds failed. // This will record any images that were built sucessfully in the helm charts - when { expression { params.BUILD_DOCKER_IMAGES } } + when { expression { params.BUILD_DOCKER_IMAGES && params.BUILD_HELM_CHARTS } } steps { script { runPart ("build-helm-charts", IMG_PARAMS) runPart ("publish-helm-charts", IMG_PARAMS)