Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GitLab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
projects.thm.de
GitLab
Commits
2f620aa7
Commit
2f620aa7
authored
Jul 20, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change auto-retry count to a correct value in docs
parent
d382ed5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+2
-2
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+2
-2
No files found.
doc/ci/yaml/README.md
View file @
2f620aa7
...
...
@@ -1145,7 +1145,7 @@ 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
If
`retry`
is set to
2, and a job succeeds in a second run (first retry)
, it won't be retried
again.
`retry`
value has to be a positive integer, equal or larger than 0, but
lower or equal to 2 (two retries maximum, three runs in total).
...
...
@@ -1154,7 +1154,7 @@ A simple example:
```
yaml
test
:
script
:
rspec
retry
:
3
retry
:
2
```
## Git Strategy
...
...
spec/models/ci/build_spec.rb
View file @
2f620aa7
...
...
@@ -826,10 +826,10 @@
describe
'#retries_max'
do
context
'when max retries value is defined'
do
subject
{
create
(
:ci_build
,
options:
{
retry:
3
})
}
subject
{
create
(
:ci_build
,
options:
{
retry:
1
})
}
it
'returns a number of configured max retries'
do
expect
(
subject
.
retries_max
).
to
eq
3
expect
(
subject
.
retries_max
).
to
eq
1
end
end
...
...
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