You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2018/03/23 08:37:27 UTC
[camel] branch test-jenkinsfile created (now b4c4848)
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a change to branch test-jenkinsfile
in repository https://gitbox.apache.org/repos/asf/camel.git.
at b4c4848 CAMEL-11930: deploy only if build from master
This branch includes the following new commits:
new b4c4848 CAMEL-11930: deploy only if build from master
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
zregvart@apache.org.
[camel] 01/01: CAMEL-11930: deploy only if build from master
Posted by zr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch test-jenkinsfile
in repository https://gitbox.apache.org/repos/asf/camel.git
commit b4c4848195e7de2fcacf1b10b13c934dfe65c024
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Fri Mar 23 09:36:17 2018 +0100
CAMEL-11930: deploy only if build from master
With multi branch pipeline Jenkins job, for every branch that is built
the results are automatically deployed to ASF Maven snapshot repository.
We should do this only for the `master` branch as it could lead to
incompatible versions of artefacts being present in the repository.
---
Jenkinsfile | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index 4ea8d4d..f716369 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -39,6 +39,20 @@ pipeline {
stages {
stage('Build & Deploy') {
+ when {
+ branch 'master'
+ }
+ steps {
+ sh "./mvnw $MAVEN_PARAMS -Dnoassembly -Dmaven.test.skip.exec=true clean deploy"
+ }
+ }
+
+ stage('Build') {
+ when {
+ not {
+ branch 'master'
+ }
+ }
steps {
sh "./mvnw $MAVEN_PARAMS -Dnoassembly -Dmaven.test.skip.exec=true clean deploy"
}
--
To stop receiving notification emails like this one, please contact
zregvart@apache.org.