Wrap code into a stage block.
This commit is contained in:
parent
54b0bb03de
commit
ed4b6bcef0
|
@ -157,6 +157,7 @@ pipeline {
|
||||||
stage('build maven-parent') {
|
stage('build maven-parent') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
stage('check and build') {
|
||||||
if ( ("${resume}" == 'true') && (wasSuccess('maven-parent')) ) {
|
if ( ("${resume}" == 'true') && (wasSuccess('maven-parent')) ) {
|
||||||
// propagate success
|
// propagate success
|
||||||
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
||||||
|
@ -172,6 +173,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('build components') {
|
stage('build components') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in New Issue