CSIT-nighly fix, cleanup failed jobs 26/2526/2
authorMiroslav Miklus <mmiklus@cisco.com>
Sat, 27 Aug 2016 08:46:11 +0000 (10:46 +0200)
committerMiroslav Miklus <mmiklus@cisco.com>
Sat, 27 Aug 2016 08:52:31 +0000 (10:52 +0200)
Make sure there is no csit directory before we do git clone.

Change-Id: I150de339922f668d6d2b94845e254767b6cb0038
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
jjb/csit/include-raw-csit-vpp-perf-nightly.sh

index 71e6803..c3f9e7d 100644 (file)
@@ -7,6 +7,11 @@ if [ "$BRANCH_ID" == "" ]; then
     BRANCH_ID="master"
 fi
 
+#make sure there is no csit directory
+if [ -d "./csit/" ]; then
+    rm -rf ./csit/
+fi
+
 # clone csit
 git clone --depth 1 --no-single-branch https://gerrit.fd.io/r/csit