maven-parent stage restored

feature/22849
Roberto Cirillo 2 years ago
parent 1715ddce7b
commit 768b96909c

40
Jenkinsfile vendored

@ -199,26 +199,26 @@ pipeline {
}
// the maven-parent needs to be built (once) at each execution
// stage('build maven-parent') {
// steps {
// script {
// if (jobs['maven-parent'] == 'SUCCESS') {
// echo "Skipping maven-parent"
// // propagate success
// sh "echo -e maven-parent,SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
// } else {
// def gjob = build(job: 'maven-parent', wait: true, propagate: true,
// parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
// [$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()} >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
// echo "Done with maven-parent"
// }
//
// }
// }
// }
stage('build maven-parent') {
steps {
script {
if (jobs['maven-parent'] == 'SUCCESS') {
echo "Skipping maven-parent"
// propagate success
sh "echo -e maven-parent,SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
} else {
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD-test", nodeEligibility: [$class: 'AllNodeEligibility']]
])
sh "echo -e maven-parent,${gjob.getResult()} >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
echo "Done with maven-parent"
}
}
}
}
stage('build components') {
steps {
script {

Loading…
Cancel
Save