This is an automated email from the ASF dual-hosted git repository.
khmarbaise 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 f0ee406 INFRA-16749, INFRA-16768 - Followup cleanup under all
circumstances.
f0ee406 is described below
commit f0ee406cd02161b500ae7b96f5011eb97757236c
Author: Karl Heinz Marbaise <[email protected]>
AuthorDate: Sat Jul 21 16:28:53 2018 +0200
INFRA-16749, INFRA-16768
- Followup cleanup under all circumstances.
---
vars/asfMavenTlpPlgnBuild.groovy | 5 +++++
vars/asfMavenTlpStdBuild.groovy | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index 6875aa6..b94a712 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -158,6 +158,9 @@ def doCreateTask( os, jdk, maven, tasks, first, plan,
taskContext )
} else {
echo "[FAIL FAST] ${taskContext.failingFast} had first failure,
ignoring ${e.message}"
}
+ } finally {
+ // always clean workspace
+ cleanWs()
}
}
stage("Build ${stageId}") {
@@ -193,6 +196,8 @@ def doCreateTask( os, jdk, maven, tasks, first, plan,
taskContext )
} else {
echo "[FAIL FAST] ${taskContext.failingFast} had first failure,
ignoring ${e.message}"
}
+ } finally {
+ cleanWs()
}
}
}
diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index c5d4098..fd9bdee 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -95,6 +95,8 @@ def call(Map params = [:]) {
} else {
echo "[FAIL FAST] ${failingFast} had first failure, ignoring
${e.message}"
}
+ } finally {
+ cleanWs()
}
}
stage("Build ${stageId}") {
@@ -132,6 +134,8 @@ def call(Map params = [:]) {
} else {
echo "[FAIL FAST] ${failingFast} had first failure, ignoring
${e.message}"
}
+ } finally {
+ cleanWs()
}
}
}