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

rombert pushed a commit to branch feature/SLING-7597
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git


The following commit(s) were added to refs/heads/feature/SLING-7597 by this 
push:
     new 53667f3  SLING-7597 - Investigate setting up Windows testing
53667f3 is described below

commit 53667f342c17b0c62163c45dd6da513a27099738
Author: Robert Munteanu <[email protected]>
AuthorDate: Wed Feb 27 13:48:51 2019 +0100

    SLING-7597 - Investigate setting up Windows testing
    
    Fix check for windows setup when generating stages.
---
 Jenkinsfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index eeef17b..8192cc2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,7 +13,8 @@ node('ubuntu') {
 
 // generates os-specific stages
 def generateStages(String os, def mvnVersion, def javaVersion) {
-    def prefix = os == "windows" ? "win" : "linux"
+    def isWindows = os == "windows"
+    def prefix = isWindows ? "win" : "linux"
 
     def stages = [
         stage("[$prefix] Build shared code") {
@@ -61,7 +62,7 @@ def generateStages(String os, def mvnVersion, def 
javaVersion) {
 
     // avoid wrapping Linux nodes again in node() context since that seems to 
make the 
     // SCM checkout unavailable
-    if ( os == "windows ") {
+    if ( isWindows ) {
         return {
             node("Windows") {
                 stages.each { it.call() }

Reply via email to