Skip to content
Snippets Groups Projects
Commit 63ded0f5 authored by Alex Iribarren's avatar Alex Iribarren Committed by Daniel Juarez
Browse files

Retry builds up to 3 times

parent 0047eae6
No related branches found
No related tags found
1 merge request!70Retry builds up to 3 times
......@@ -15,7 +15,7 @@ stages:
.common_script: &common_script |
oc start-build linux-docs --wait
build_test:
stage: build
image: gitlab-registry.cern.ch/paas-tools/openshift-client
......@@ -27,6 +27,7 @@ build_test:
# Use double quotes so variable interpolation works, but this requires scaping JSON patch
- oc patch buildconfig linux-docs -p "{\"spec\":{\"source\":{\"git\":{\"ref\":\"$CI_COMMIT_REF_NAME\"}}}}"
- *common_script
retry: 3
except:
- master
variables:
......@@ -40,12 +41,13 @@ build_prod:
- *common_functions
script:
- *common_script
retry: 3
variables:
<<: *prod_variables
only:
- master
# We make linux-qa have the latest pushed changes to master as well so they are synchronised
# We make linux-qa have the latest pushed changes to master as well so they are synchronized
sync test with prod:
stage: build
image: gitlab-registry.cern.ch/paas-tools/openshift-client
......@@ -57,6 +59,7 @@ sync test with prod:
# Use double quotes so variable interpolation works, but this requires scaping JSON patch
- oc patch buildconfig linux-docs -p "{\"spec\":{\"source\":{\"git\":{\"ref\":\"$CI_COMMIT_REF_NAME\"}}}}"
- *common_script
retry: 3
only:
- master
variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment