We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53e4e2a commit 73695afCopy full SHA for 73695af
1 file changed
.github/workflows/scripts/upload-artifacts.sh
@@ -67,11 +67,13 @@ cleanup() {
67
}
68
trap cleanup EXIT
69
70
+sleeptime=10
71
+retries=20
72
wait_task()
73
{
74
_id=$1
75
_success=0
- for t in `seq 180`
76
+ for t in `seq $retries`
77
do
78
jsonret=`curl -fsS -u $aptly_user:$aptly_password ${aptly_api}/api/tasks/$_id`
79
_state=`echo $jsonret | jq .State`
@@ -84,7 +86,7 @@ wait_task()
84
86
echo Error: task failed
85
87
return 1
88
fi
- sleep 1
89
+ sleep $sleeptime
90
done
91
if [ "$_success" -ne 1 ]; then
92
echo Error: task timeout
0 commit comments