From 9ec18e4bf27f6db76545c0a3abb574a832252756 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Mon, 9 Dec 2019 16:02:48 -0500 Subject: [PATCH] Remove script block. --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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') {