diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-09 14:14:45 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-09 21:09:41 +0300 |
commit | f09dcbd9bd2590bb66ee49b65637525a3c71a307 (patch) | |
tree | 8cdcbb6667697c559b59c4548c0857da364b8128 /app/services | |
parent | f2a4420d66216e3a9172f4ab45c6b4fa96578117 (diff) |
Make retried to be nullable
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/ci/retry_build_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/ci/retry_build_service.rb b/app/services/ci/retry_build_service.rb index 9c532b585a1..f51e9fd1d54 100644 --- a/app/services/ci/retry_build_service.rb +++ b/app/services/ci/retry_build_service.rb @@ -30,8 +30,8 @@ module Ci Ci::Build.transaction do # mark all other builds of that name as retried - build.pipeline.builds.where(name: build.name) - .where.not(retried: true) + build.pipeline.builds.latest + .where(name: build.name) .update_all(retried: true) project.builds.create!(Hash[attributes]) |