3rd party ci: Wipe the workspace before doing anything else 15/25915/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 13 Dec 2016 20:52:01 +0000 (21:52 +0100)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 13 Dec 2016 20:55:22 +0000 (21:55 +0100)
Due to not cloning the repos, the workspace is not wiped out.
This change makes sure we remove everything in workspace to
prevent jenkins from complaining.

Change-Id: Ife3c4c752cf37c6ff3bfcdea6ffaebc72c440373
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 f350671..11a35ac 100755 (executable)
@@ -1,8 +1,12 @@
 #!/bin/bash
 set -e
+
+# wipe the WORKSPACE
+/bin/rm -rf $WORKSPACE
+
 # clone opnfv sdnvpn repo
 git clone https://gerrit.opnfv.org/gerrit/p/sdnvpn.git $WORKSPACE/sdnvpn
 . $WORKSPACE/sdnvpn/odl-pipeline/odl-pipeline-common.sh
 pushd $LIB
 ./test_environment.sh --env-number $APEX_ENV_NUMBER --cloner-info $CLONER_INFO --snapshot-disks $SNAPSHOT_DISKS --vjump-hosts $VIRTUAL_JUMPHOSTS
-popd
\ No newline at end of file
+popd
index 671a5fe..20d6cc5 100755 (executable)
@@ -1,4 +1,8 @@
 #!/bin/bash
+set -e
+
+# wipe the 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 abc7975..d89423f 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/bash
+set -e
+
+# wipe the WORKSPACE
+/bin/rm -rf $WORKSPACE
 
 echo "Hello World"
-ls -al $WORKSPACE
index abc7975..d89423f 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/bash
+set -e
+
+# wipe the WORKSPACE
+/bin/rm -rf $WORKSPACE
 
 echo "Hello World"
-ls -al $WORKSPACE