mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
ci: retry git clone for nuttx-ntfc-testing
github infra is not stable so even "git clone" from github repos can fail with error: 500. With this commit we try to clone repo few more times. Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
parent
4711abcf93
commit
d9f6216f30
1 changed files with 12 additions and 1 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
|
@ -206,7 +206,18 @@ jobs:
|
|||
cd /github/workspace/nuttx-ntfc
|
||||
# get NTFC test cases
|
||||
cd external
|
||||
git clone -b release-0.0.1 https://github.com/apache/nuttx-ntfc-testing
|
||||
for i in 1 2 3 4 5; do
|
||||
git clone -b release-0.0.1 https://github.com/apache/nuttx-ntfc-testing && break
|
||||
if [ "$i" -eq 5 ]; then
|
||||
echo "Failed to clone nuttx-ntfc-testing after $i attempts"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
delay=$((i * 10))
|
||||
echo "Clone attempt $i failed; retrying in ${delay}s..."
|
||||
rm -rf nuttx-ntfc-testing
|
||||
sleep "$delay"
|
||||
done
|
||||
mv nuttx-ntfc-testing nuttx-testing
|
||||
export NTFCDIR=/github/workspace/nuttx-ntfc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue