Skip to content

Commit

Permalink
[Backport 2.x] Always retry integrationTest unless explicitly disable…
Browse files Browse the repository at this point in the history
…d with DISABLE_RETRY (opensearch-project#4854)

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent f082bf7 commit 09c2703
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 @@ -537,8 +537,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 09c2703

Please sign in to comment.