From e9c5b9a112261a464a1ba82431e54a8ce40e4782 Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Thu, 7 Jan 2021 14:31:36 +0200 Subject: [PATCH] Configure gradle to retry once flaky tests Backport for 38f6a722 --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index c724bf5791..d94b86cdbf 100644 --- a/build.gradle +++ b/build.gradle @@ -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" @@ -204,6 +205,11 @@ configure(rootProject) { project -> logger.error("ERROR: Test: " + descriptor + " produced resource leak: " + event.message ) } } + + retry { + maxFailures = 10 + maxRetries = 1 + } } sourceSets {