diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-19 12:27:49 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-19 12:27:49 +0300 |
commit | 23223ba64e91cc3406ed6cf5889f8cc25f9a1337 (patch) | |
tree | 298e5dd0a4ef947ddfea39c7167769afef56403f /lib | |
parent | f49a906a5f805d44ce2b4c6c01e58a38a606761b (diff) |
Do not allow to auto-retry a job more than 2 times
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/config/entry/job.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/config/entry/job.rb b/lib/gitlab/ci/config/entry/job.rb index 5f1144894b5..32f5c6ab142 100644 --- a/lib/gitlab/ci/config/entry/job.rb +++ b/lib/gitlab/ci/config/entry/job.rb @@ -25,7 +25,7 @@ module Gitlab validates :allow_failure, boolean: true validates :retry, numericality: { only_integer: true, greater_than_or_equal_to: 0, - less_than: 10 } + less_than_or_equal_to: 2 } validates :when, inclusion: { in: %w[on_success on_failure always manual], message: 'should be on_success, on_failure, ' \ |