diff options
author | Josh Frye <joshfng@gmail.com> | 2016-06-01 10:50:32 -0400 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-06-02 11:10:57 -0400 |
commit | 2605a0a844f187daeeff1f16920db445f53e2793 (patch) | |
tree | 27f47b7fbb99ae090c8694048efb4972c8509666 /app/models/ci/build.rb | |
parent | 4d9622e7d3e927ad158d26c780fee64c6d8183bc (diff) | |
download | gitlab-ce-2605a0a844f187daeeff1f16920db445f53e2793.tar.gz |
Refactor. Add tests.
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index f597f920a3b..64723ab6b4b 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -313,7 +313,7 @@ module Ci build_data = Gitlab::BuildDataBuilder.build(self) project.execute_hooks(build_data.dup, :build_hooks) project.execute_services(build_data.dup, :build_hooks) - project.expire_running_or_pending_build_count + project.running_or_pending_build_count(force: true) end def artifacts? |