Skip to content

Commit

Permalink
Configure gradle to retry once flaky tests
Browse files Browse the repository at this point in the history
Backport for 38f6a72
  • Loading branch information
violetagg committed Jan 7, 2021
1 parent 6c3ab1c commit e9c5b9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ buildscript {
plugins {
id "com.github.hierynomus.license" version "0.15.0"
id 'org.asciidoctor.convert' version '1.5.11'
id 'org.gradle.test-retry' version '1.1.9'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id "com.jfrog.artifactory" version "4.16.1" apply false
id "de.undercouch.download" version "4.1.1"
Expand Down Expand Up @@ -204,6 +205,11 @@ configure(rootProject) { project ->
logger.error("ERROR: Test: " + descriptor + " produced resource leak: " + event.message )
}
}

retry {
maxFailures = 10
maxRetries = 1
}
}

sourceSets {
Expand Down

0 comments on commit e9c5b9a

Please sign in to comment.