From e73ad7338963ba729c45b33dd4b0e13c9ac02f8e Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 2 Oct 2019 11:48:37 -0400 Subject: [PATCH] Correct the agent repo folder. --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 485cf86..5c870de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" }