summaryrefslogtreecommitdiffstats
path: root/jjb/daisy4nfv
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-05-08 06:51:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-08 06:51:03 +0000
commit29e0b0ea6b5555045a7aad07d6c070967fbee355 (patch)
tree032494c8c1247be02564ae0af5d507126204637a /jjb/daisy4nfv
parent87bdf551e4449d6650712702c0cbe1595b33d5c8 (diff)
parentc3471b1759a7b1af9ddf9a3da5e7cf5df879a078 (diff)
Merge "Improve daisy download speed by multi-thread tool"
Diffstat (limited to 'jjb/daisy4nfv')
-rwxr-xr-xjjb/daisy4nfv/daisy4nfv-download-artifact.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/jjb/daisy4nfv/daisy4nfv-download-artifact.sh b/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
index 1cc0443ad..6107f9de2 100755
--- a/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
+++ b/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
@@ -57,12 +57,18 @@ fi
# log info to console
echo "Downloading the $INSTALLER_TYPE artifact using URL http://$OPNFV_ARTIFACT_URL"
-echo "This could take some time..."
+echo "This could take some time... Now the time is $(date -u)"
echo "--------------------------------------------------------"
echo
# download the file
-curl -L -s -o $WORKSPACE/opnfv.bin http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
+if [[ "$NODE_NAME" =~ (zte) ]] && [ -x "$(command -v aria2c)" ]; then
+ DOWNLOAD_CMD="aria2c -x 3"
+else
+ DOWNLOAD_CMD="curl -L -s"
+fi
+
+$DOWNLOAD_CMD -o $WORKSPACE/opnfv.bin http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
# list the file
ls -al $WORKSPACE/opnfv.bin