Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Disable blocking on buildable queue (Functest)
[releng.git]
/
jjb
/
daisy4nfv
/
daisy4nfv-download-artifact.sh
diff --git
a/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
b/jjb/daisy4nfv/daisy4nfv-download-artifact.sh
index
a64c80e
..
ae5ca38
100755
(executable)
--- a/
jjb/daisy4nfv/daisy4nfv-download-artifact.sh
+++ b/
jjb/daisy4nfv/daisy4nfv-download-artifact.sh
@@
-68,7
+68,15
@@
else
DOWNLOAD_CMD="curl -L -s -o $WORKSPACE/opnfv.bin"
fi
DOWNLOAD_CMD="curl -L -s -o $WORKSPACE/opnfv.bin"
fi
-$DOWNLOAD_CMD http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
+maxretries=3
+cnt=0
+rc=1
+while [ $cnt -lt $maxretries ] && [ $rc -ne 0 ]
+do
+ cnt=$[cnt + 1]
+ $DOWNLOAD_CMD http://$OPNFV_ARTIFACT_URL > gsutil.bin.log 2>&1
+ rc=$?
+done
# list the file
ls -al $WORKSPACE/opnfv.bin
# list the file
ls -al $WORKSPACE/opnfv.bin