Change auto-retry count to a correct value in docs

This commit is contained in:
Grzegorz Bizon 2017-07-20 11:02:00 +02:00
parent d382ed5eb6
commit 2f620aa711
2 changed files with 4 additions and 4 deletions

View file

@ -1145,7 +1145,7 @@ case of a failure.
When a job fails, and has `retry` configured it is going to be processed again 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. 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 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). lower or equal to 2 (two retries maximum, three runs in total).
@ -1154,7 +1154,7 @@ A simple example:
```yaml ```yaml
test: test:
script: rspec script: rspec
retry: 3 retry: 2
``` ```
## Git Strategy ## Git Strategy

View file

@ -826,10 +826,10 @@ describe Ci::Build, :models do
describe '#retries_max' do describe '#retries_max' do
context 'when max retries value is defined' 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 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
end end