Remove start and finish builders from jenkins job
[releng.git] / jjb / 3rd_party_ci / download-netvirt-artifact.sh
index 20d6cc5..be2d405 100755 (executable)
@@ -1,8 +1,12 @@
 #!/bin/bash
 set -e
 
+if [ -z ${WORKSPACE} ]; then
+  echo "WORKSPACE is unset. Please do so."
+  exit 1
+fi
 # 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"