From 8a9ee772399f963b32eaee213b4a75a976455e8e Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 17 Sep 2016 10:51:36 +0100 Subject: [PATCH] Jenkins should clean workspace before new build if build agent is reused --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 373a1e42..66cc7921 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,8 @@ node('freebsd') { def srcdir = pwd() def tmpdir = pwd([tmp: true]) stage('Checkout') { - sh 'env' + // https://issues.jenkins-ci.org/browse/JENKINS-32540 + sh 'git clean -ffdx' checkout scm sh 'git submodule update --init --recursive' }