Skip to content
Snippets Groups Projects

Retry builds up to 3 times

Merged Alex Iribarren requested to merge retry into master
All threads resolved!
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
+ 5
2
@@ -15,7 +15,7 @@ stages:
@@ -15,7 +15,7 @@ stages:
.common_script: &common_script |
.common_script: &common_script |
oc start-build linux-docs --wait
oc start-build linux-docs --wait
build_test:
build_test:
stage: build
stage: build
image: gitlab-registry.cern.ch/paas-tools/openshift-client
image: gitlab-registry.cern.ch/paas-tools/openshift-client
@@ -27,6 +27,7 @@ build_test:
@@ -27,6 +27,7 @@ build_test:
# Use double quotes so variable interpolation works, but this requires scaping JSON patch
# 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\"}}}}"
- oc patch buildconfig linux-docs -p "{\"spec\":{\"source\":{\"git\":{\"ref\":\"$CI_COMMIT_REF_NAME\"}}}}"
- *common_script
- *common_script
 
retry: 3
except:
except:
- master
- master
variables:
variables:
@@ -40,12 +41,13 @@ build_prod:
@@ -40,12 +41,13 @@ build_prod:
- *common_functions
- *common_functions
script:
script:
- *common_script
- *common_script
 
retry: 3
variables:
variables:
<<: *prod_variables
<<: *prod_variables
only:
only:
- master
- 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:
sync test with prod:
stage: build
stage: build
image: gitlab-registry.cern.ch/paas-tools/openshift-client
image: gitlab-registry.cern.ch/paas-tools/openshift-client
@@ -57,6 +59,7 @@ sync test with prod:
@@ -57,6 +59,7 @@ sync test with prod:
# Use double quotes so variable interpolation works, but this requires scaping JSON patch
# 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\"}}}}"
- oc patch buildconfig linux-docs -p "{\"spec\":{\"source\":{\"git\":{\"ref\":\"$CI_COMMIT_REF_NAME\"}}}}"
- *common_script
- *common_script
 
retry: 3
only:
only:
- master
- master
variables:
variables:
Loading