@@ -226,18 +226,23 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
226226 showStandardStreams = true
227227 }
228228
229- retry {
230- // If running in CI, enable retries to mitigate flakiness
231- if (System . getenv(). containsKey(" CI" )) {
232- // Run each test method up to three times
233- maxRetries = 3
234- // If any test method fails, disable retries for the other tests
235- // (unintuitive: if you set this to 1, then as soon as a test case fails, it will disable retries, including for itself.
236- // So we set to 2, which means: a test case failing will retry itself. If, after three retries, it still fails, then we disable retries globally.)
237- maxFailures = 2
229+ develocity {
230+ testRetry {
231+ // If running in CI, enable retries to mitigate flakiness
232+ if (System . getenv(). containsKey(" CI" )) {
233+ // Run each test method up to three times
234+ maxRetries = 3
235+ // If any test method fails, disable retries for the other tests
236+ // (unintuitive: if you set this to 1, then as soon as a test case fails, it will disable retries, including for itself.
237+ // So we set to 2, which means: a test case failing will retry itself. If, after three retries, it still fails, then we disable retries globally.)
238+ maxFailures = 2
239+ }
240+ // If a test fails, but succeeds on retry - don't fail the task
241+ failOnPassedAfterRetry = false
242+ // If a test fails, but is skipped on retry (e.g., due to failed assumptions) - don't fail the task.
243+ // This handles cases where tests use Assumptions.assumeTrue() to conditionally skip themselves.
244+ failOnSkippedAfterRetry = false
238245 }
239- // If a test fails, but succeeds on retry - don't fail the task
240- failOnPassedAfterRetry = false
241246 }
242247 reports {
243248 junitXml {
0 commit comments