mirror of https://github.com/apache/kafka.git
				
				
				
			MINOR: allow retries for unitTest and integrationTest runs (#8323)
We will currently retry if you run gradle test, but not unitTest or integrationTest, which are used directly in Jenkins. This means that we have not been achieving the expected retry behavior. Reviewers: Ismael Juma <ismael@juma.me.uk>
This commit is contained in:
		
							parent
							
								
									635b5fd47c
								
							
						
					
					
						commit
						c16938fd96
					
				|  | @ -324,6 +324,10 @@ subprojects { | |||
|       includeCategories 'org.apache.kafka.test.IntegrationTest' | ||||
|     } | ||||
| 
 | ||||
|     retry { | ||||
|       maxRetries = userMaxTestRetries | ||||
|       maxFailures = userMaxTestRetryFailures | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   task unitTest(type: Test, dependsOn: compileJava) { | ||||
|  | @ -344,6 +348,11 @@ subprojects { | |||
|         excludeCategories 'org.apache.kafka.test.IntegrationTest' | ||||
|       } | ||||
|     } | ||||
| 
 | ||||
|     retry { | ||||
|       maxRetries = userMaxTestRetries | ||||
|       maxFailures = userMaxTestRetryFailures | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   jar { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue