diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d0e09b16808e6905bfc439ab9880e9d3d677bef7..8366eafea2b4f049ddba6e793fe30304fa436502 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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: