Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
883e8f86
Commit
883e8f86
authored
Jul 18, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic docs for CI/CD job auto-retry feature
parent
67157d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+26
-0
No files found.
doc/ci/yaml/README.md
View file @
883e8f86
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment