From e7c8e170a564ef253511f0b3d208ffedaca127f4 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Thu, 4 Oct 2018 13:39:24 +0200 Subject: [PATCH] clean build directory before building, so we don't have to enable this in each project manually --- vars/buildTestDeploy.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vars/buildTestDeploy.groovy b/vars/buildTestDeploy.groovy index 46b3030..748513b 100644 --- a/vars/buildTestDeploy.groovy +++ b/vars/buildTestDeploy.groovy @@ -123,6 +123,11 @@ def doAll(ArrayList<String> dependencyList, String label, String buildType) { def doBuild(ArrayList<String> dependencyList, String label, String buildType) { echo("Starting build for ${label}-${buildType}") + + // Clean build directory. This removes any files which are not in the source code repository + sh ''' + git clean -f -d -x + ''' // obtain artefacts of dependencies script { -- GitLab