summaryrefslogtreecommitdiffstats
path: root/jjb/daisy4nfv
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-05-08 16:02:20 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-05-08 16:13:30 +0800
commit3259179855b171c62c9e87b9368abbf16919610d (patch)
tree2d515d2431ee77d4fb79dc960903c9010f01da44 /jjb/daisy4nfv
parentc3471b1759a7b1af9ddf9a3da5e7cf5df879a078 (diff)
Fix the parameters of downloading
aria2c should use "-d" to indicate the directory to store the downloaded file. Change-Id: I6590403fb0c0b2938ee384cf5b1d5acc42ed94c1 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'jjb/daisy4nfv')
-rwxr-xr-xjjb/daisy4nfv/daisy4nfv-download-artifact.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/jjb/daisy4nfv/daisy4nfv-download-artifact.sh b/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
index 6107f9de2..a64c80e5c 100755
--- a/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
+++ b/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
@@ -63,12 +63,12 @@ echo
# download the file
if [[ "$NODE_NAME" =~ (zte) ]] && [ -x "$(command -v aria2c)" ]; then
- DOWNLOAD_CMD="aria2c -x 3"
+ DOWNLOAD_CMD="aria2c -x 3 --allow-overwrite=true -d $WORKSPACE -o opnfv.bin"
else
- DOWNLOAD_CMD="curl -L -s"
+ DOWNLOAD_CMD="curl -L -s -o $WORKSPACE/opnfv.bin"
fi
-$DOWNLOAD_CMD -o $WORKSPACE/opnfv.bin http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
+$DOWNLOAD_CMD http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
# list the file
ls -al $WORKSPACE/opnfv.bin