Skip to content
Snippets Groups Projects
Commit 1a1a9ed5 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add sleep after failed download

parent 07aacbad
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,12 @@ function deploy(){ ...@@ -116,7 +116,12 @@ function deploy(){
typeset -i local isupdate=$defaultupdate typeset -i local isupdate=$defaultupdate
${selfdir}/bin/getfile.sh -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp} ${selfdir}/bin/getfile.sh -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo Download failed.
echo Repeating request with debug param -d to get the error... echo Repeating request with debug param -d to get the error...
# added sleep to repeat the request with another hashed secret
sleep 2
${selfdir}/bin/getfile.sh -d -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp} ${selfdir}/bin/getfile.sh -d -f ${IMLCI_PROJECT}.tgz -o ${downloadtmp}
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment