aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>2023-10-19 12:22:37 +0200
committersonartech <sonartech@sonarsource.com>2023-10-19 20:03:27 +0000
commit631af9cf00da2ca21eb022d030cd16f3e7d5aae3 (patch)
treea5f34920e963184a6f78a47ec896cf312aab5db8 /build.gradle
parentfb44cd005bd047b36f6bb159dc474f2a1454e0ab (diff)
downloadsonarqube-631af9cf00da2ca21eb022d030cd16f3e7d5aae3.tar.gz
sonarqube-631af9cf00da2ca21eb022d030cd16f3e7d5aae3.zip
NO-JIRA Implemented flaky test detection
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 4fc24dd184c..c8904c6a9f5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -763,6 +763,15 @@ ext.osAdaptiveCommand = { commands ->
return newCommands
}
+tasks.matching { task -> task instanceof Test || task instanceof BlackBoxTest}.configureEach {
+ retry {
+ if (System.getenv('CI') == "true") {
+ maxRetries = 3
+ failOnPassedAfterRetry = true
+ }
+ }
+}
+
tasks.named('sonarqube') {
onlyIf {
System.getenv('CI') == "true"