Add resume also for maven-parent.
This commit is contained in:
parent
05df0c77f3
commit
fe1719cce5
|
@ -157,15 +157,20 @@ 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')) ) {
|
||||||
|
// propagate success
|
||||||
|
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
||||||
|
} else {
|
||||||
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
|
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
|
||||||
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
|
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
|
||||||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
|
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
|
||||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||||
])
|
])
|
||||||
sh "echo -e \\\"${name},${gjob.getResult()}\\\">> $JOB_REPORT"
|
sh "echo -e \\\"maven-parent,${gjob.getResult()}\\\">> $JOB_REPORT"
|
||||||
echo "Done with maven-parent"
|
echo "Done with maven-parent"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('build components') {
|
stage('build components') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in New Issue