set maven-parent job to the maven-parent_branch jenkinsjob

This commit is contained in:
Roberto Cirillo 2022-03-04 12:27:44 +01:00
parent 459450afad
commit e9714e4106
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -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']]