From 103054dc99388905dd2bb74bf00531591565bcd1 Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Fri, 10 Apr 2015 08:40:59 +0300 Subject: coresight: clean up the workspace Change-Id: I46b6fb9fc8dc32c43085758a106bbe1e1ee1aed4 Signed-off-by: Fathi Boudra --- coresight.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'coresight.yaml') diff --git a/coresight.yaml b/coresight.yaml index b689adb53d..9836883860 100644 --- a/coresight.yaml +++ b/coresight.yaml @@ -65,13 +65,18 @@ - shell: | #!/bin/bash + set -ex + trap cleanup_exit INT TERM EXIT cleanup_exit() { cd ${WORKSPACE} + rm -rf lci-build-tools rm -rf builddir* rm -rf out + git clean -fdx + git reset --hard } export LANG=C @@ -140,11 +145,10 @@ - inject: properties-file: post_build_lava_parameters - shell: | + rm -rf configs lci-build-tools + git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git git clone --depth 1 http://git.linaro.org/ci/job/configs.git ./lci-build-tools/yaml-to-json.py configs/coresight/lava-job-definitions/${DEVICE_TYPE}/template.yaml > custom_lava_job_definition.json - - rm -rf lci-build-tools - rm -rf configs - trigger-builds: - project: 'post-build-lava' property-file: post_build_lava_parameters -- cgit v1.2.3