diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-01-03 08:55:53 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-01-03 08:55:53 +0000 |
commit | 54f18f59a06d772566023fa2834bb874fdf2e54f (patch) | |
tree | 15412ff7c0d9fe7706506852478d291932030628 /app/models/ci | |
parent | e216ac2c962ebacec2fa2bdc73f5b53e0068d8c1 (diff) | |
parent | 7ebd36e302e3e6c118f47d18d6c72a83418097d2 (diff) | |
download | gitlab-ce-54f18f59a06d772566023fa2834bb874fdf2e54f.tar.gz |
Merge branch 'use-after-transition' into 'master'
Prefer to use after_transition
Closes #55306
See merge request gitlab-org/gitlab-ce!24107
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/build.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index b128a254b96..aeb35538d67 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -221,6 +221,10 @@ module Ci next unless build.project build.deployment&.drop + end + + after_transition any => [:failed] do |build| + next unless build.project if build.retry_failure? begin |