Correct the agent repo folder.

This commit is contained in:
Manuele Simi 2019-10-02 11:48:37 -04:00
parent 52a3e05cf0
commit e73ad73389
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -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}"
}