diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-18 13:01:29 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-18 13:01:29 +0200 |
commit | 883e8f8691af573246aced279b48cae46d8f2a1c (patch) | |
tree | 150adcaba4fd123bf02fc83f25da74bb10207f49 /doc | |
parent | 67157d81149856b90c5f0034e5e4bb05a35fbfcc (diff) | |
download | gitlab-ce-883e8f8691af573246aced279b48cae46d8f2a1c.tar.gz |
Add basic docs for CI/CD job auto-retry feature
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ci/yaml/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 724843a4d56..6b17af1394a 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -395,6 +395,7 @@ job_name: | after_script | no | Override a set of commands that are executed after job | | environment | no | Defines a name of environment to which deployment is done by this job | | coverage | no | Define code coverage settings for a given job | +| retry | no | Define how many times a job can be auto-retried in case of a failure | ### script @@ -1129,9 +1130,33 @@ A simple example: ```yaml job1: + script: rspec coverage: '/Code coverage: \d+\.\d+/' ``` +### retry + +**Notes:** +- [Introduced][ce-3442] in GitLab 9.5. + +`retry` allows you to configure how many times a job is going to be retried in +case of a failure. + +When a job fails, and has `retry` configured it is going to be processed again +up to the amount of times specified by the `retry` keyword. + +If `retry` is set to 3, and a job succeeds in a second run, it won't be retried +again. `retry` value has to be a positive integer, equal or larger than 0, but +lower than 10. + +A simple example: + +```yaml +test: + script: rspec + retry: 3 +``` + ## Git Strategy > Introduced in GitLab 8.9 as an experimental feature. May change or be removed @@ -1506,3 +1531,4 @@ CI with various languages. [variables]: ../variables/README.md [ce-7983]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7983 [ce-7447]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7447 +[ce-3442]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3442 |