set maven-parent job to the maven-parent_branch jenkinsjob

feature/22849
Roberto Cirillo 2 years ago
parent 459450afad
commit e9714e4106

4
Jenkinsfile vendored

@ -203,12 +203,12 @@ pipeline {
stage('build maven-parent') {
steps {
script {
if (jobs['maven-parent'] == 'SUCCESS') {
if (jobs['maven-parent_branch'] == '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,
def gjob = build(job: 'maven-parent_branch', wait: true, propagate: true,
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_settings_file} -Pdry-run"],
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD-test", nodeEligibility: [$class: 'AllNodeEligibility']]

Loading…
Cancel
Save