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 c70c94d  Try to shorten wsDir
c70c94d is described below

commit c70c94d6cc26afa1c640f64749f47f9db10e73c4
Author: rfscholte <rfscho...@apache.org>
AuthorDate: Sat Oct 6 11:49:12 2018 +0200

    Try to shorten wsDir
---
 vars/asfMavenTlpPlgnBuild.groovy | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index ddd5ab0..0ac0cdf 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -144,8 +144,10 @@ def doCreateTask( os, jdk, maven, tasks, first, plan, 
taskContext )
   String stageId = "${os}-jdk${jdk}-m${maven}_${plan}"
   tasks[stageId] = {
     node(jenkinsEnv.nodeSelection(label)) {
-      def tmpWs = (os == 'windows' && taskContext.tmpWs)
-         def wsDir = pwd( tmp : tmpWs )
+      def wsDir = pwd()
+         if (os == 'windows' && taskContext.tmpWs) {
+           wsDir = "$TEMP/$BUILD_TAG"
+         }
       ws( dir : "$wsDir" )
       {
         stage("Checkout ${stageId}") {

Reply via email to