From efaf295bd87a79828db14acc79acb3f38949b1ed Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 17 Apr 2022 10:09:04 +1000 Subject: [PATCH] deploy for master and archiva-2.x branches Signed-off-by: Olivier Lamy --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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" + } + } } } } -- 2.39.5