gitlab-ci: Turn .retry YAML anchor into .ci-run-policy template
To match Mesa.
This commit is contained in:
		
							parent
							
								
									456dff1bf8
								
							
						
					
					
						commit
						1e9c63bedd
					
				|  | @ -31,19 +31,20 @@ stages: | ||||||
|     - build-and-test |     - build-and-test | ||||||
| 
 | 
 | ||||||
| # Retry jobs after runner system failures | # Retry jobs after runner system failures | ||||||
| .retry: &retry | .ci-run-policy: | ||||||
|   retry: |   retry: | ||||||
|     max: 2 |     max: 2 | ||||||
|     when: |     when: | ||||||
|       - runner_system_failure |       - runner_system_failure | ||||||
| 
 | 
 | ||||||
| debian-testing: | debian-testing: | ||||||
|   extends: .debian@container-ifnot-exists |   extends: | ||||||
|  |     - .debian@container-ifnot-exists | ||||||
|  |     - .ci-run-policy | ||||||
|   stage: docker-image |   stage: docker-image | ||||||
|   <<: *retry |  | ||||||
| 
 | 
 | ||||||
| .common-build-and-test: | .common-build-and-test: | ||||||
|     <<: *retry |     extends: .ci-run-policy | ||||||
|     stage: build-and-test |     stage: build-and-test | ||||||
|     image: $IMAGE_LOCAL |     image: $IMAGE_LOCAL | ||||||
|     artifacts: |     artifacts: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue