Skip to content

Commit 9195805

Browse files
Explicitly adds retry logic
Signed-off-by: Darshit Chanpura <[email protected]>
1 parent df217ee commit 9195805

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

sample-resource-plugin/build.gradle

+9-6
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ sourceSets {
9595

9696
tasks.register("integrationTest", Test) {
9797
doFirst {
98-
if (System.getenv('DISABLE_RETRY') != 'true') {
99-
retry {
100-
failOnPassedAfterRetry = false
101-
maxRetries = 2
102-
maxFailures = 5
103-
}
98+
retry {
99+
failOnPassedAfterRetry = false
100+
maxRetries = 5
101+
maxFailures = 5
104102
}
105103
}
106104
description = 'Run integration tests for the subproject.'
@@ -115,3 +113,8 @@ tasks.register("integrationTest", Test) {
115113
tasks.named("integrationTest").configure {
116114
dependsOn rootProject.tasks.named("compileIntegrationTestJava")
117115
}
116+
117+
tasks.named("integrationTest") {
118+
minHeapSize = "512m"
119+
maxHeapSize = "2g"
120+
}

0 commit comments

Comments
 (0)