1 parent 679b260 commit 3977f1bCopy full SHA for 3977f1b
1 file changed
.github/workflows/ci.yml
@@ -46,9 +46,17 @@ jobs:
46
git clone --depth 1 --branch "${EASY4J_BRANCH}" \
47
"https://github.com/easy-4-java/${dependency}.git" \
48
"${dependency_root}/${dependency}"
49
- mvn -B --no-transfer-progress \
50
- -f "${dependency_root}/${dependency}/pom.xml" \
51
- -DskipTests -Djacoco.skip=true -Dgpg.skip=true install
+ for attempt in 1 2 3; do
+ if mvn -B --no-transfer-progress \
+ -f "${dependency_root}/${dependency}/pom.xml" \
52
+ -DskipTests -Djacoco.skip=true -Dgpg.skip=true install; then
53
+ break
54
+ fi
55
+ if [[ "${attempt}" -eq 3 ]]; then
56
+ exit 1
57
58
+ sleep "$((attempt * 10))"
59
+ done
60
done
61
62
- name: Build and verify with JaCoCo coverage gate
0 commit comments