You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/04/04 16:43:26 UTC

[maven-jenkins-lib] branch master updated: Shorten wsDir

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 55578b8  Shorten wsDir
55578b8 is described below

commit 55578b881b0fc43d390930710ef2be585432bd3b
Author: rfscholte <rf...@apache.org>
AuthorDate: Thu Apr 4 18:43:17 2019 +0200

    Shorten wsDir
---
 vars/asfMavenTlpPlgnBuild.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index ed7af0b..44b9929 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -150,13 +150,13 @@ 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"
+	    wsDir = "F:\\short\\$BUILD_TAG".replaceAll(/(.+)maven-(.+)-plugin(.*)/) { txt, l, m, r -> l + 'm-' + m + '-p' + r } )
 	  }
       ws( dir : "$wsDir" )
       {
         stage("Checkout ${stageId}") {
           try {
-            dir(stageId) {
+            dir(stageId - 'windows-') {
               checkout scm
             }
           } catch (Throwable e) {