Using $WORKSPACE instead of env.WORKSPACE as this could behave inconsistent when used on parallel nodes.
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index d490623..8b3775f 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -76,7 +76,7 @@
String stageId = "${os}-jdk${jdk}"
tasks[stageId] = {
node("${label}") {
- def wsDir = env.WORKSPACE
+ def wsDir = $WORKSPACE // env.WORKSPACE could not work as expected in parallel tasks (https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-33511)
if (os == 'windows' && tmpWs) {
wsDir = 'F:\\short\\' + "$BUILD_TAG".replaceAll(/(.+)_maven-box_maven-(.+)/) { "m-${it[2]}" }
}