diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/build.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 248ecd71962..c9566560461 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -107,8 +107,8 @@ module Ci def play(current_user = nil) # Try to queue a current build if self.queue - self.update(user: current_user) - self + self.update(user: current_user) + self else # Otherwise we need to create a duplicate Ci::Build.retry(self, current_user) |