From 0eef793e293679fe82e98b2555f9d3ea6efb9e86 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Tue, 1 Nov 2016 08:18:47 +0000 Subject: [PATCH] Remove artefacts from previous build at start of a branch build Jenkins is currently configured to re-use workspaces between builds of the same branch. Run `make clean` at the start of the build to ensure that any artefacts from the previous build of the branch are removed. --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index c47431101d1..aaecef669a8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,7 @@ node { stage 'Build' nodeEnv.inside("-e HOME=${workspace}") { + sh 'make clean' sh 'make' }