Skip to content

Commit 794a5b6

Browse files
committed
. e added code to fail if all 3 attempts fail
1 parent f8cbda4 commit 794a5b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/test_and_build_docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
for i in 1 2 3; do
5353
g-cli Caraya -- -s "Tests/Error.Propagation.Tests/Error.Propagation.Tests.lvclass" -x "reports/Error.Propagation.UnitTestReport.xml" && break
5454
echo "Attempt $i failed, retrying..."
55+
[ $i -eq 3 ] && exit 1
5556
sleep 10
5657
done
5758
- name: Build Package
@@ -66,6 +67,7 @@ jobs:
6667
for i in 1 2 3; do
6768
vipm --labview-version 2026 build "${vipb}" && break
6869
echo "Build attempt $i failed, retrying..."
70+
[ $i -eq 3 ] && exit 1
6971
sleep 10
7072
done
7173

0 commit comments

Comments
 (0)