Jenkins should clean workspace before new build

if build agent is reused
This commit is contained in:
Alexey Sokolov
2016-09-17 10:51:36 +01:00
parent 682d2f1e01
commit 8a9ee77239

3
Jenkinsfile vendored
View File

@@ -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'
}