Skip to content

Commit

Permalink
Try twice in case of network lossage
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Jan 20, 2023
1 parent e03e552 commit d513958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checker/bin-devel/test-plume-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ for PACKAGE in "${PACKAGES[@]}"; do
# Uses "compileJava" target instead of "assemble" to avoid the javadoc error "Error fetching URL:
# https://docs.oracle.com/en/java/javase/17/docs/api/" due to network problems.
echo "About to call ./gradlew --console=plain -PcfLocal compileJava"
(cd "${PACKAGEDIR}" && ./gradlew --console=plain -PcfLocal compileJava)
# Try twice in case of network lossage.
(cd "${PACKAGEDIR}" && (./gradlew --console=plain -PcfLocal compileJava || (sleep 60 && ./gradlew --console=plain -PcfLocal compileJava)))
done

0 comments on commit d513958

Please sign in to comment.