You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2022/04/17 00:09:29 UTC
[archiva] branch archiva-2.x updated: deploy for master and archiva-2.x branches
This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch archiva-2.x
in repository https://gitbox.apache.org/repos/asf/archiva.git
The following commit(s) were added to refs/heads/archiva-2.x by this push:
new efaf295bd deploy for master and archiva-2.x branches
efaf295bd is described below
commit efaf295bd87a79828db14acc79acb3f38949b1ed
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sun Apr 17 10:09:04 2022 +1000
deploy for master and archiva-2.x branches
Signed-off-by: Olivier Lamy <ol...@apache.org>
---
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"
+ }
+ }
}
}
}