Add retry back to muzzle jobs (#5457)

This commit is contained in:
Trask Stalnaker 2022-02-27 19:45:20 -08:00 committed by GitHub
parent 0a6b87eb69
commit e5fdfbaeb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 6 deletions

View File

@ -191,12 +191,20 @@ jobs:
distribution: adopt
java-version: 11
- name: Run muzzle
- name: Set up gradle cache
uses: gradle/gradle-build-action@v2
with:
arguments: ${{ matrix.module }}:muzzle
cache-read-only: true
- name: Run muzzle
# using retry because of sporadic gradle download failures
uses: nick-invision/retry@v2.6.0
with:
# timing out has not been a problem, these jobs typically finish in 2-3 minutes
timeout_minutes: 15
max_attempts: 3
command: ./gradlew ${{ matrix.module }}:muzzle
examples:
runs-on: ubuntu-latest
steps:

View File

@ -182,12 +182,20 @@ jobs:
distribution: adopt
java-version: 11
- name: Run muzzle
- name: Set up gradle cache
uses: gradle/gradle-build-action@v2
with:
arguments: ${{ matrix.module }}:muzzle
cache-read-only: true
- name: Run muzzle
# using retry because of sporadic gradle download failures
uses: nick-invision/retry@v2.6.0
with:
# timing out has not been a problem, these jobs typically finish in 2-3 minutes
timeout_minutes: 15
max_attempts: 3
command: ./gradlew ${{ matrix.module }}:muzzle
examples:
runs-on: ubuntu-latest
steps:

View File

@ -242,12 +242,20 @@ jobs:
distribution: adopt
java-version: 11
- name: Run muzzle
- name: Set up gradle cache
uses: gradle/gradle-build-action@v2
with:
arguments: ${{ matrix.module }}:muzzle
cache-read-only: true
- name: Run muzzle
# using retry because of sporadic gradle download failures
uses: nick-invision/retry@v2.6.0
with:
# timing out has not been a problem, these jobs typically finish in 2-3 minutes
timeout_minutes: 15
max_attempts: 3
command: ./gradlew ${{ matrix.module }}:muzzle
examples:
runs-on: ubuntu-latest
steps: