Skip to content

Commit

Permalink
Only conditionally apply retries no integrationTests
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Oct 6, 2023
1 parent 033d59f commit 6b4b5c4
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,6 @@ task listTasksAsJSON {

test {
include '**/*.class'
doFirst {
// Only run with retries while in CI systems
if (System.getenv('CI_ENVIRONMENT') == 'normal') {
retry {
failOnPassedAfterRetry = false
maxRetries = 5
}
}
}

filter {
excludeTestsMatching "org.opensearch.security.sanity.tests.*"
}
Expand All @@ -208,6 +198,10 @@ test {
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
jvmArgs += "--add-opens=java.base/java.io=ALL-UNNAMED"
}
retry {
failOnPassedAfterRetry = false
maxRetries = 5
}
jacoco {
excludes = [
"com.sun.jndi.dns.*",
Expand Down Expand Up @@ -251,6 +245,10 @@ def setCommonTestConfig(Test task) {
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
task.jvmArgs += "--add-opens=java.base/java.io=ALL-UNNAMED"
}
task.retry {
failOnPassedAfterRetry = false
maxRetries = 5
}
task.jacoco {
excludes = [
"com.sun.jndi.dns.*",
Expand Down

0 comments on commit 6b4b5c4

Please sign in to comment.