Wrap maven-parent in a script block.
This commit is contained in:
parent
fe1719cce5
commit
08e55f99b1
|
@ -157,17 +157,19 @@ 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 {
|
||||||
if ( ('true'.equals(${resume})) && (wasSuccess('maven-parent')) ) {
|
script {
|
||||||
// propagate success
|
if ( ('true'.equals(${resume})) && (wasSuccess('maven-parent')) ) {
|
||||||
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
// propagate success
|
||||||
} else {
|
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
||||||
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
|
} else {
|
||||||
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
|
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
|
||||||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
|
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
|
||||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
|
||||||
])
|
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||||
sh "echo -e \\\"maven-parent,${gjob.getResult()}\\\">> $JOB_REPORT"
|
])
|
||||||
echo "Done with maven-parent"
|
sh "echo -e \\\"maven-parent,${gjob.getResult()}\\\">> $JOB_REPORT"
|
||||||
|
echo "Done with maven-parent"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue