Try to shorten wsDir
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 @@
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}") {