3rd party ci: Fix bug introduced by wiping out the WORKSPACE itself 17/25917/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 13 Dec 2016 21:02:30 +0000 (22:02 +0100)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 13 Dec 2016 21:02:30 +0000 (22:02 +0100)
Change-Id: I61de7763412d791bcce20174d6058acf818d0e13
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/3rd_party_ci/create-apex-vms.sh
jjb/3rd_party_ci/download-netvirt-artifact.sh
jjb/3rd_party_ci/functest-netvirt.sh
jjb/3rd_party_ci/postprocess-netvirt.sh

index 11a35ac..a076dd0 100755 (executable)
@@ -2,7 +2,7 @@
 set -e
 
 # wipe the WORKSPACE
-/bin/rm -rf $WORKSPACE
+/bin/rm -rf $WORKSPACE/*
 
 # clone opnfv sdnvpn repo
 git clone https://gerrit.opnfv.org/gerrit/p/sdnvpn.git $WORKSPACE/sdnvpn
index 20d6cc5..0a48e3a 100755 (executable)
@@ -2,7 +2,7 @@
 set -e
 
 # wipe the WORKSPACE
-/bin/rm -rf $WORKSPACE
+/bin/rm -rf $WORKSPACE/*
 
 echo "Attempting to fetch the artifact location from ODL Jenkins"
 CHANGE_DETAILS_URL="https://git.opendaylight.org/gerrit/changes/netvirt~master~$GERRIT_CHANGE_ID/detail"
index d89423f..adffaf4 100755 (executable)
@@ -2,6 +2,6 @@
 set -e
 
 # wipe the WORKSPACE
-/bin/rm -rf $WORKSPACE
+/bin/rm -rf $WORKSPACE/*
 
 echo "Hello World"
index d89423f..adffaf4 100755 (executable)
@@ -2,6 +2,6 @@
 set -e
 
 # wipe the WORKSPACE
-/bin/rm -rf $WORKSPACE
+/bin/rm -rf $WORKSPACE/*
 
 echo "Hello World"