You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2022/06/15 16:36:07 UTC
[sling-tooling-jenkins] branch master updated: only add deploy stage at end when Maven goal "deploy" has been executed
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
The following commit(s) were added to refs/heads/master by this push:
new 29716d1 only add deploy stage at end when Maven goal "deploy" has been executed
29716d1 is described below
commit 29716d18807c84a267e58c813ab02135c84ba95d
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Jun 15 18:36:03 2022 +0200
only add deploy stage at end when Maven goal "deploy" has been executed
---
vars/slingOsgiBundleBuild.groovy | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index 008248c..1b97856 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -101,7 +101,8 @@ def call(Map params = [:]) {
parallel stepsMap
// last stage is deploy
- if ( shouldDeploy ) {
+ def goal = jobConfig.mavenGoal ?: "deploy"
+ if ( goal == "deploy" && shouldDeploy ) {
node(globalConfig.mainNodeLabel) {
stage("Deploy to Nexus") {
deployToNexus(globalConfig)