You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by jc...@apache.org on 2021/09/07 16:51:10 UTC
[brooklyn-client] branch master updated: Adding mvn deploy if not PR
This is an automated email from the ASF dual-hosted git repository.
jcabrerizo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-client.git
The following commit(s) were added to refs/heads/master by this push:
new 26a6c89 Adding mvn deploy if not PR
new fb19c16 Merge pull request #89 from jcabrerizo/master
26a6c89 is described below
commit 26a6c89366d1b4b034f48f21149bdb99f61f9c8f
Author: Juan Cabrerizo <ju...@cloudsoft.io>
AuthorDate: Tue Sep 7 17:49:32 2021 +0100
Adding mvn deploy if not PR
---
Jenkinsfile | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index 7fe54bb..ac79372 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -48,6 +48,15 @@ node(label: 'ubuntu') {
sh 'mvn clean install -Duser.home=/var/maven -Duser.name=jenkins'
}
}
+
+ // Conditional stage to deploy artifacts, when not building a PR
+ if (env.CHANGE_ID == null) {
+ stage('Deploy artifacts') {
+ environmentDockerImage.inside('-i --name brooklyn-${DOCKER_TAG} -v ${WORKSPACE}/.m2:/var/maven/.m2 --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly -v ${WORKSPACE}:/usr/build -w /usr/build') {
+ sh 'mvn deploy -DskipTests -Duser.home=/var/maven -Duser.name=jenkins'
+ }
+ }
+ }
}
}