Make the local repo path available through an environment variable.

This commit is contained in:
Manuele Simi 2019-05-29 22:25:29 -04:00
parent f97f105687
commit 32d66c6a7e
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -41,6 +41,7 @@ pipeline {
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
environment {
JOB_OPTIONS = "${options}"
MAVEN_LOCAL_REPO = "${maven_local_repo_path}"
}
// see https://jenkins.io/doc/book/pipeline/syntax/#parameters
@ -55,8 +56,8 @@ pipeline {
stage('clean up before starting') {
script {
echo "Create a fresh local repository"
rm -rf "${maven_local_repo_path}"
mkdir -p "${maven_local_repo_path}"
rm -rf $MAVEN_LOCAL_REPO
mkdir -p $MAVEN_LOCAL_REPO
echo "Done with local repository"
}
}