Skip to content

Commit 889cb35

Browse files
authored
Bring back test retry for JMX Scraper tests (#1619)
1 parent 16222fe commit 889cb35

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jmx-scraper/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ tasks {
7070
systemProperty("app.war.path", testWarTask.get().archiveFile.get().asFile.absolutePath)
7171

7272
systemProperty("gradle.project.version", "${project.version}")
73+
74+
develocity.testRetry {
75+
// You can see tests that were retried by this mechanism in the collected test reports and build scans.
76+
if (System.getenv().containsKey("CI")) {
77+
maxRetries.set(5)
78+
}
79+
}
7380
}
7481

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

0 commit comments

Comments
 (0)