Restore one share local repository among jobs.
This commit is contained in:
parent
514e7764da
commit
d748085413
|
@ -1,3 +1,4 @@
|
|||
#!groovy
|
||||
import org.yaml.snakeyaml.Yaml
|
||||
|
||||
// set the build options according to the Type of build
|
||||
|
@ -62,7 +63,7 @@ pipeline {
|
|||
|
||||
// see https://jenkins.io/doc/book/pipeline/syntax/#agent
|
||||
agent {
|
||||
label 'pipeline-agent-garr'
|
||||
label 'CD'
|
||||
}
|
||||
|
||||
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
||||
|
@ -102,8 +103,8 @@ pipeline {
|
|||
steps {
|
||||
echo build(job: 'maven-parent', wait: true,
|
||||
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_settings_file}"],
|
||||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
|
||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "pipeline-agent-garr", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}/${PIPELINE_BUILD_NUMBER}"],
|
||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||
]).result
|
||||
echo "Done with maven-parent"
|
||||
}
|
||||
|
@ -197,8 +198,8 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path) {
|
|||
if (name && !"NONE".equalsIgnoreCase(name))
|
||||
build(job: name,
|
||||
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_settings_file}"],
|
||||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}/${PIPELINE_BUILD_NUMBER}/${name}"],
|
||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "pipeline-agent-garr", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}/${PIPELINE_BUILD_NUMBER}"],
|
||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||
])
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue