Skip to content

Commit

Permalink
Bring back test retry for JMX Scraper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 20, 2024
1 parent 16222fe commit 0955ae1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jmx-scraper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ tasks {
systemProperty("app.war.path", testWarTask.get().archiveFile.get().asFile.absolutePath)

systemProperty("gradle.project.version", "${project.version}")

develocity.testRetry {
// You can see tests that were retried by this mechanism in the collected test reports and build scans.
if (System.getenv().containsKey("CI")) {
maxRetries.set(5)
}
}
}

// Because we reconfigure publishing to only include the shadow jar, the Gradle metadata is not correct.
Expand Down

0 comments on commit 0955ae1

Please sign in to comment.