You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2022/11/14 08:19:50 UTC

[sling-tooling-jenkins] branch master updated: SLING-11673 - Jenkins sanity check stage executed even when no parallel builds are triggered (#15)

This is an automated email from the ASF dual-hosted git repository.

rombert 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 0f36ff5  SLING-11673 - Jenkins sanity check stage executed even when no parallel builds are triggered (#15)
0f36ff5 is described below

commit 0f36ff585d1efae8479065a7be0e67721ccc3dd6
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Nov 14 09:19:46 2022 +0100

    SLING-11673 - Jenkins sanity check stage executed even when no parallel builds are triggered (#15)
    
    Correct the stepsMap size check
---
 vars/slingOsgiBundleBuild.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index 2754d16..7018b6c 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -97,7 +97,8 @@ def call(Map params = [:]) {
             }
 
             // do a quick sanity check first without tests if multiple parallel builds are required
-            if ( stepsMap.size() > 1 ) {
+            // the stepsMap has at least one entry due to the failFast entry
+            if ( stepsMap.size() > 2 ) {
                 node(globalConfig.mainNodeLabel) {
                     stage("Sanity Check") {
                         checkout scm