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

rfscholte 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 606d96d  rewrite groovy statement
606d96d is described below

commit 606d96da32136e582ac80894c8dee764cd83be75
Author: rfscholte <rfscho...@apache.org>
AuthorDate: Thu Apr 4 19:40:51 2019 +0200

    rewrite groovy statement
---
 vars/asfMavenTlpPlgnBuild.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index 644c196..b2e4517 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -150,7 +150,7 @@ def doCreateTask( os, jdk, maven, tasks, first, plan, 
taskContext )
       def wsDir = pwd()
          if (os == 'windows' && taskContext.tmpWs) {
 //         wsDir = "$TEMP\\$BUILD_TAG" // or use 
F:\jenkins\jenkins-slave\workspace or F:\short
-           wsDir = 
"F:\\short\\$BUILD_TAG".replaceAll(/(.+)maven-(.+)-plugin(.*)/) { txt, l, m, r 
-> l + 'm-' + m + '-p' + r }
+           wsDir = 'F:\\short\\' + 
"$BUILD_TAG".replaceAll(/(.+)maven-(.+)-plugin(.*)/) { 
"${it[1]}m-${it[2]}-p${it[3]}" }
          }
       ws( dir : "$wsDir" )
       {

Reply via email to