clear workspace prior to running IT stage/deploy stage
diff --git a/vars/vaultStageDeploy.groovy b/vars/vaultStageDeploy.groovy
index acfc38b..c9cb09a 100644
--- a/vars/vaultStageDeploy.groovy
+++ b/vars/vaultStageDeploy.groovy
@@ -26,6 +26,8 @@
node('nexus-deploy') {
timeout(60) {
echo "Running on node ${env.NODE_NAME}"
+ // first clear workspace
+ deleteDir
// Nexus deployment needs pom.xml
checkout scm
// Unstash the previously stashed build results.
diff --git a/vars/vaultStageIT.groovy b/vars/vaultStageIT.groovy
index 496e5e1..9a762bc 100644
--- a/vars/vaultStageIT.groovy
+++ b/vars/vaultStageIT.groovy
@@ -31,6 +31,8 @@
node(nodeLabel) {
timeout(60) {
echo "Running on node ${env.NODE_NAME}"
+ // first clear workspace
+ deleteDir
// running ITs needs pom.xml
checkout scm
// Unstash the previously stashed build results.