ci: more relaxed aptly upload

This commit is contained in:
André Roth
2025-01-11 14:02:24 +01:00
parent 5a18428666
commit a862192bc4

View File

@@ -67,11 +67,14 @@ cleanup() {
}
trap cleanup EXIT
sleeptime=5
retries=60
wait_task()
{
_id=$1
_success=0
for t in `seq 180`
sleep $sleeptime
for t in `seq $retries`
do
jsonret=`curl -fsS -u $aptly_user:$aptly_password ${aptly_api}/api/tasks/$_id`
_state=`echo $jsonret | jq .State`
@@ -84,7 +87,7 @@ wait_task()
echo Error: task failed
return 1
fi
sleep 1
sleep $sleeptime
done
if [ "$_success" -ne 1 ]; then
echo Error: task timeout