removing maven-parent stage for testing purpose

This commit is contained in:
Roberto Cirillo 2022-02-21 15:23:20 +01:00
parent e737501db6
commit 4161e23dd1
1 changed files with 20 additions and 20 deletions

40
Jenkinsfile vendored
View File

@ -199,26 +199,26 @@ 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 { // script {
if (jobs['maven-parent'] == 'SUCCESS') { // if (jobs['maven-parent'] == 'SUCCESS') {
echo "Skipping maven-parent" // echo "Skipping maven-parent"
// propagate success // // propagate success
sh "echo -e maven-parent,SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv" // sh "echo -e maven-parent,SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
} else { // } 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 maven-parent,${gjob.getResult()} >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv" // sh "echo -e maven-parent,${gjob.getResult()} >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
echo "Done with maven-parent" // echo "Done with maven-parent"
} // }
//
} // }
} // }
} // }
stage('build components') { stage('build components') {
steps { steps {
script { script {