Fix gjob.

This commit is contained in:
Manuele Simi 2019-12-09 21:47:34 -05:00
parent 520fc3d31b
commit d04abeab48
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -239,7 +239,7 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
// propagate success // propagate success
sh "echo -e \\\"${name},SUCCESS\\\">> $JOB_REPORT" sh "echo -e \\\"${name},SUCCESS\\\">> $JOB_REPORT"
} else { } else {
build(job: name, def gjob = build(job: name, wait: true, propagate: true,
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_settings_file}"], parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_settings_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']]
@ -261,7 +261,7 @@ def parseJobs(job_file) {
def jobs = [:] def jobs = [:]
try { try {
new File(job_file).splitEachLine(',') { columns -> new File(job_file).splitEachLine(',') { columns ->
if (columns[0].startsWith('#') || columns[0].startsWith('GroupID')) if (columns[0].startsWith('#') || columns[0].startsWith('JobName'))
return return
jobs["${columns[0]}"] = columns[1] jobs["${columns[0]}"] = columns[1]
} }