removing maven-parent stage for testing purpose
This commit is contained in:
parent
e737501db6
commit
4161e23dd1
|
@ -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", 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…
Reference in New Issue