aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2018-05-01 20:19:58 +0200
committerMartin Stockhammer <martin_s@apache.org>2018-05-01 20:19:58 +0200
commit6baab5a26848aba0689279e355bfe7b5c531282d (patch)
tree192ac250369688f593fcb9b6f23c7b9d86f8e49d /Jenkinsfile
parent8b16d7b24a805d80fee1e20ea58c9c310f037650 (diff)
downloadarchiva-6baab5a26848aba0689279e355bfe7b5c531282d.tar.gz
archiva-6baab5a26848aba0689279e355bfe7b5c531282d.zip
Switching back to old repository dir
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 0a7bda553..9458f4f70 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']]
+ }
}
}