Skip to content

Commit

Permalink
Always retry integrationTest unless explicitly disabled with DISABLE_…
Browse files Browse the repository at this point in the history
…RETRY (#4853)

Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks authored Oct 28, 2024
1 parent 2e0e64f commit cdfd41e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,7 @@ task integrationTest(type: Test) {
if (System.getenv('CI_ENVIRONMENT') != 'resource-test' && System.getenv('CI_ENVIRONMENT') != null) {
exclude '**/ResourceFocusedTests.class'
}
// Only run with retries while in CI systems
if (System.getenv('CI_ENVIRONMENT') == 'normal') {
if (System.getenv('DISABLE_RETRY') != 'true') {
retry {
failOnPassedAfterRetry = false
maxRetries = 2
Expand Down

0 comments on commit cdfd41e

Please sign in to comment.