Wrap maven-parent in a script block.
This commit is contained in:
parent
fe1719cce5
commit
08e55f99b1
|
@ -157,6 +157,7 @@ pipeline {
|
||||||
// the maven-parent needs to be built (once) at each execution
|
// the maven-parent needs to be built (once) at each execution
|
||||||
stage('build maven-parent') {
|
stage('build maven-parent') {
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
if ( ('true'.equals(${resume})) && (wasSuccess('maven-parent')) ) {
|
if ( ('true'.equals(${resume})) && (wasSuccess('maven-parent')) ) {
|
||||||
// propagate success
|
// propagate success
|
||||||
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
||||||
|
@ -171,6 +172,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('build components') {
|
stage('build components') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in New Issue