diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-04-03 10:35:35 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-04-03 10:35:35 +0300 |
commit | ee8225a15f3c6acd46f3837e728dc232144494aa (patch) | |
tree | 38c9ff94e41a64148bfca077d454194f2986aef0 /.gitlab-ci.yml | |
parent | 3467381b02b3f38fbc10278c2e5b3af15e61c2eb (diff) |
Add 'retry: 2' to all jobs
Make it so jobs get automatically retried if failed (max 2 times)
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9b145bbb..36076328 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,9 @@ variables: BRANCH_OMNIBUS: 'master' BRANCH_RUNNER: 'master' +# +# Check Ruby version and install gems +# before_script: - ruby -v - bundle install --jobs 4 --path vendor @@ -34,6 +37,12 @@ before_script: except: - /^\d{1,2}\.\d{1,2}$/ +# +# Retry a job automatically if it fails (2 times) +# +.retry: &retry + retry: 2 + ############################################### # Build the website # ############################################### @@ -54,6 +63,7 @@ before_script: - vendor/ruby tags: - docker + <<: *retry # # Compile only on master and stable branches @@ -96,6 +106,7 @@ internal_links: tags: - docker <<: *except_pipelines + <<: *retry # # SCSS linting @@ -111,6 +122,7 @@ scss_lint: tags: - docker <<: *except_pipelines + <<: *retry ############################################### # Review Apps # @@ -146,6 +158,7 @@ review: tags: - nginx - review-apps + <<: *retry # # Stop the Review App @@ -173,6 +186,7 @@ review_stop: tags: - nginx - review-apps + <<: *retry ############################################### # GitLab Pages (production) # @@ -215,6 +229,7 @@ pages: - master@gitlab-com/gitlab-docs tags: - docker + <<: *retry ############################################### # Performance testing # @@ -242,6 +257,7 @@ performance: only: - branches <<: *except_pipelines + <<: *retry ############################################### # Docker images builds # @@ -257,6 +273,7 @@ performance: before_script: - docker info - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + <<: *retry # # Helper Docker image containing all build dependencies |