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

martinkanters pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 361543d  Using !isUnix() to check whether the node is running Windows 
or not
361543d is described below

commit 361543d4bd72374901518e2c9b497336adecac0a
Author: Martin Kanters <martinkant...@apache.org>
AuthorDate: Mon Oct 5 15:44:03 2020 +0200

    Using !isUnix() to check whether the node is running Windows or not
---
 vars/asfMavenTlpStdBuild.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 29b38d8..786a41c 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -79,7 +79,7 @@ def call(Map params = [:]) {
             // without this block $WORKSPACE could not work as expected in 
parallel tasks 
(https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-33511)
             withEnv(["NODE_WORKSPACE=${pwd()}"]) {
               def wsDir = env.NODE_WORKSPACE
-              if (os == 'windows' && tmpWs) {
+              if (!isUnix() && tmpWs) {
                 wsDir = 'F:\\short\\' + 
"$BUILD_TAG".replaceAll(/(.+)_maven-box_maven-(.+)/) { "m-${it[2]}" }
               }
               ws( dir : "$wsDir" ) {

Reply via email to