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:
raiden00pl 2026-05-12 09:22:51 +02:00 committed by Matteo Golin
parent a6477ec8dc
commit 275a083464

View file

@ -197,7 +197,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