summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-30 08:59:23 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-30 08:59:23 +0000
commit8dbac01cee85de8531e737b0ff1072608259b4ad (patch)
tree987e77d45e8b0ad507ef9d5dc23f1c1cb2f46461 /lib
parent04715ae39e89db09741570c6fcb1ff1545c08fc3 (diff)
parent595baf5f70374c9acf63c690e5ac786df345fff1 (diff)
downloadgitlab-ci-8dbac01cee85de8531e737b0ff1072608259b4ad.tar.gz
Merge branch 'refactoring' into 'master'
Refactoring
Diffstat (limited to 'lib')
-rw-r--r--lib/api/builds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index 0982d7d..45b2d35 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -80,7 +80,7 @@ module API
required_attributes! [:project_id, :data, :project_token]
project = Project.find(params[:project_id])
authenticate_project_token!(project)
- build = project.register_build(params[:data])
+ build = CreateBuildService.new.execute(project, params[:data])
if build.persisted?
present build, with: Entities::Build