Create different local-repos within the same pipeline build.
This commit is contained in:
commit
a8accdbaa3
|
@ -68,7 +68,7 @@ pipeline {
|
||||||
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
||||||
environment {
|
environment {
|
||||||
JOB_OPTIONS = "${options}"
|
JOB_OPTIONS = "${options}"
|
||||||
MAVEN_LOCAL_REPO = "${agent_root_folder}/${maven_local_repo_path}"
|
MAVEN_LOCAL_REPO = "${agent_root_folder}/${BUILD_NUMBER}/${maven_local_repo_path}"
|
||||||
GCUBE_RELEASE_NUMBER = "${params.gCube_release_version}"
|
GCUBE_RELEASE_NUMBER = "${params.gCube_release_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path) {
|
||||||
if (name && !"NONE".equalsIgnoreCase(name))
|
if (name && !"NONE".equalsIgnoreCase(name))
|
||||||
build(job: name,
|
build(job: name,
|
||||||
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}/${name}"],
|
||||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "pipeline-agent-garr", nodeEligibility: [$class: 'AllNodeEligibility']]
|
[$class: 'LabelParameterValue', name: 'exec_label', label: "pipeline-agent-garr", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue