Make the local repo path available through an environment variable.
This commit is contained in:
parent
f97f105687
commit
32d66c6a7e
|
@ -41,6 +41,7 @@ pipeline {
|
||||||
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
||||||
environment {
|
environment {
|
||||||
JOB_OPTIONS = "${options}"
|
JOB_OPTIONS = "${options}"
|
||||||
|
MAVEN_LOCAL_REPO = "${maven_local_repo_path}"
|
||||||
}
|
}
|
||||||
|
|
||||||
// see https://jenkins.io/doc/book/pipeline/syntax/#parameters
|
// see https://jenkins.io/doc/book/pipeline/syntax/#parameters
|
||||||
|
@ -55,8 +56,8 @@ pipeline {
|
||||||
stage('clean up before starting') {
|
stage('clean up before starting') {
|
||||||
script {
|
script {
|
||||||
echo "Create a fresh local repository"
|
echo "Create a fresh local repository"
|
||||||
rm -rf "${maven_local_repo_path}"
|
rm -rf $MAVEN_LOCAL_REPO
|
||||||
mkdir -p "${maven_local_repo_path}"
|
mkdir -p $MAVEN_LOCAL_REPO
|
||||||
echo "Done with local repository"
|
echo "Done with local repository"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue