diff --git a/Jenkinsfile b/Jenkinsfile index 21cca11..9f631be 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -156,8 +156,7 @@ pipeline { // the maven-parent needs to be built (once) at each execution stage('build maven-parent') { steps { - script { - stage('check and build') { + if ( ("${resume}" == 'true') && (wasSuccess('maven-parent')) ) { // propagate success sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT" @@ -170,8 +169,7 @@ pipeline { sh "echo -e \\\"maven-parent,${gjob.getResult()}\\\">> $JOB_REPORT" echo "Done with maven-parent" } - } - } + } } stage('build components') {