Skip to content

Commit c3a90ea

Browse files
committed
Add test retry plugin
1 parent 0f6fcb2 commit c3a90ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
id 'groovy'
66
id 'java-gradle-plugin'
77
id 'codenarc'
8+
id "org.gradle.test-retry" version "1.2.0"
89
}
910

1011
group = "org.gradle.android"
@@ -102,6 +103,10 @@ tasks.register('install', Upload) {
102103
tasks.withType(Test).configureEach {
103104
dependsOn install
104105
systemProperty "local.repo", localRepo.toURI()
106+
retry {
107+
maxRetries = 3
108+
maxFailures = 20
109+
}
105110
}
106111

107112
if (!JavaVersion.current().java8) {

0 commit comments

Comments
 (0)