This is an automated email from the ASF dual-hosted git repository. martin_s pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/archiva.git
commit 6baab5a26848aba0689279e355bfe7b5c531282d Author: Martin Stockhammer <marti...@apache.org> AuthorDate: Tue May 1 20:19:58 2018 +0200 Switching back to old repository dir --- Jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0a7bda5..9458f4f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,9 +14,7 @@ pipeline { stage('Checkout') { steps { script { - currentBuild.description = "This builds, tests and deploys the current artifact from archiva master branch." - REPO_DIR = "${PWD}/.repo-${env.JOB_NAME.replace('/', '_')}" - echo "Info: Job-Name=${JOB_NAME}, Branch=${BRANCH_NAME}, Workspace=${PWD}, Repo-Dir=${REPO_DIR}" + echo "Info: Job-Name=${JOB_NAME}, Branch=${BRANCH_NAME}, Workspace=${PWD}" } checkout scm } @@ -32,7 +30,7 @@ pipeline { timeout(120) { withMaven(maven: buildMvn, jdk: buildJdk, mavenSettingsConfig: deploySettings, - mavenLocalRepo: REPO_DIR + mavenLocalRepo: ".repository" ) { sh "chmod 755 ./src/ci/scripts/prepareWorkspace.sh" @@ -69,7 +67,7 @@ pipeline { timeout(120) { withMaven(maven: buildMvn, jdk: buildJdk, mavenSettingsConfig: deploySettings, - mavenLocalRepo: REPO_DIR + mavenLocalRepo: ".repository" ) { sh "mvn deploy -B -Dmaven.test.skip=true" @@ -88,6 +86,9 @@ pipeline { unstable { notifyBuild("Unstable Build") } + always { + cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']] + } } } -- To stop receiving notification emails like this one, please contact marti...@apache.org.