add when branch master clause on build stage

This commit is contained in:
Roberto Cirillo 2023-02-24 15:13:38 +01:00
parent 0a45372d08
commit 57553528d9
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -216,6 +216,9 @@ pipeline {
script {
jsonConfig.gCube_release.Components.each { group_name, component_list ->
stage("build ${group_name} components") {
when {
branch "master"
}
buildComponents items: component_list?.collect { "${it.name}" },
"${maven_settings_file}", "${maven_activation_property}", "${maven_local_repo_path}", jobs
echo "Done with ${group_name} components"