Correct the agent repo folder.
This commit is contained in:
parent
52a3e05cf0
commit
e73ad73389
|
@ -3,7 +3,7 @@ import org.yaml.snakeyaml.Yaml
|
|||
// set the build options according to the Type of build
|
||||
def (options, maven_local_repo_path, maven_settings_file) = ['', '', '']
|
||||
def maven_jdk = 'OpenJDK 8'
|
||||
def agent_root_folder = '/var/lib/jenkins'
|
||||
def agent_root_folder = '/var/lib/jenkins/.m2'
|
||||
|
||||
if (params.Type == 'SNAPSHOT-DRY-RUN') {
|
||||
echo "Configure Maven for SNAPSHOT-DRY-RUN artifacts"
|
||||
|
@ -67,7 +67,7 @@ pipeline {
|
|||
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
||||
environment {
|
||||
JOB_OPTIONS = "${options}"
|
||||
MAVEN_LOCAL_REPO = "/var/lib/jenkins/${maven_local_repo_path}"
|
||||
MAVEN_LOCAL_REPO = "${agent_root_folder}/${maven_local_repo_path}"
|
||||
GCUBE_RELEASE_NUMBER = "${params.gCube_release_version}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue