From 889cb35050ffe8002c6a350cd21643b406e883ba Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 20 Dec 2024 12:36:21 -0800 Subject: [PATCH] Bring back test retry for JMX Scraper tests (#1619) --- jmx-scraper/build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jmx-scraper/build.gradle.kts b/jmx-scraper/build.gradle.kts index 3b6cfcf0f..1bbc2dbe4 100644 --- a/jmx-scraper/build.gradle.kts +++ b/jmx-scraper/build.gradle.kts @@ -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.