summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2022-04-17 10:09:04 +1000
committerOlivier Lamy <olamy@apache.org>2022-04-17 10:09:22 +1000
commitefaf295bd87a79828db14acc79acb3f38949b1ed (patch)
tree8ecad8b8736ac95e87dfb98e03912d7f7215ee71 /Jenkinsfile
parent9077002f127b39998921e407139d0eb92bfe4db2 (diff)
downloadarchiva-efaf295bd87a79828db14acc79acb3f38949b1ed.tar.gz
archiva-efaf295bd87a79828db14acc79acb3f38949b1ed.zip
deploy for master and archiva-2.x branches
Signed-off-by: Olivier Lamy <olamy@apache.org>
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 7d60a36af..4d69de99f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -72,7 +72,13 @@ pipeline {
// -Dmaven.compiler.fork=false: Do not compile in a separate forked process
// -Dmaven.test.failure.ignore=true: Do not stop, if some tests fail
// -Pci-build: Profile for CI-Server
- sh "mvn clean install -B -U -e -fae -T2 -Pci-build"
+ script {
+ if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'archiva-2.x') {
+ sh "mvn clean deploy -B -U -e -fae -T2 -Pci-build"
+ } else {
+ sh "mvn clean install -B -U -e -fae -T2 -Pci-build"
+ }
+ }
}
}
}