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>
#!/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
#!/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"
#!/bin/bash
+set -e
+
+# wipe the WORKSPACE
+/bin/rm -rf $WORKSPACE
echo "Hello World"
-ls -al $WORKSPACE
#!/bin/bash
+set -e
+
+# wipe the WORKSPACE
+/bin/rm -rf $WORKSPACE
echo "Hello World"
-ls -al $WORKSPACE