Commit 2cc9a785 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Properly create deployment using all possible options

parent 08272ec1
...@@ -79,7 +79,8 @@ module Ci ...@@ -79,7 +79,8 @@ module Ci
after_transition any => [:success] do |build| after_transition any => [:success] do |build|
if build.environment.present? if build.environment.present?
service = CreateDeploymentService.new(build.project, build.user, service = CreateDeploymentService.new(
build.project, build.user,
environment: build.environment, environment: build.environment,
sha: build.sha, sha: build.sha,
ref: build.ref, ref: build.ref,
......
...@@ -15,6 +15,15 @@ module Ci ...@@ -15,6 +15,15 @@ module Ci
expose :filename, :size expose :filename, :size
end end
class BuildOptions < Grape::Entity
expose :image
expose :services
expose :artifacts
expose :cache
expose :dependencies
expose :after_script
end
class Build < Grape::Entity class Build < Grape::Entity
expose :id, :ref, :tag, :sha, :status expose :id, :ref, :tag, :sha, :status
expose :name, :token, :stage expose :name, :token, :stage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment