diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-01-20 12:25:53 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-01-20 12:25:53 +0100 |
commit | b7f4553e3e4681d5a4a53af35650bcbb1c83b390 (patch) | |
tree | 281f19e15f9c06e978382fbaffb42ddb1ad705eb /lib/ci | |
parent | 491f1375fc055805c623a3079a383de988689f3d (diff) | |
download | gitlab-ce-b7f4553e3e4681d5a4a53af35650bcbb1c83b390.tar.gz |
Backport changes introduced by https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1083
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/api/builds.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index c4bdef781f7..6c869cde515 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -23,8 +23,8 @@ module Ci new_update = current_runner.ensure_runner_queue_value - build = Ci::RegisterBuildService.new.execute(current_runner) - + build = Ci::RegisterBuildService.new(current_runner).execute +
if build Gitlab::Metrics.add_event(:build_found, project: build.project.path_with_namespace) |