diff options
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 8 |
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" + } + } } } } |