Skip to content

Commit

Permalink
Merge pull request #600 from Altinity/22.8-fix-runner-labels
Browse files Browse the repository at this point in the history
22.8 Fix CI/CD
  • Loading branch information
Enmk authored Jan 23, 2025
2 parents c042b1f + 046b4ff commit 160efa3
Show file tree
Hide file tree
Showing 13 changed files with 796 additions and 718 deletions.
22 changes: 22 additions & 0 deletions .github/retry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# Execute command until exitcode is 0 or
# maximum number of retries is reached
# Example:
# ./retry <retries> <delay> <command>
retries=$1
delay=$2
command="${@:3}"
exitcode=0
try=0
until [ "$try" -ge $retries ]
do
echo "$command"
eval "$command"
exitcode=$?
if [ $exitcode -eq 0 ]; then
break
fi
try=$((try+1))
sleep $2
done
exit $exitcode
Loading

0 comments on commit 160efa3

Please sign in to comment.