diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-19 13:31:42 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-19 13:31:42 +0200 |
commit | 967eb8fb550b8225177b8cb7f87afd81cfd0c213 (patch) | |
tree | d1d458a0e1d8c5448f2ae8db7415f770aa9bddaf /app/models/ci/build.rb | |
parent | 748dd35c65b0a7f3fbb0832fd18933ff8c19ef7d (diff) | |
parent | c20e4267e89c1fa84b3eeb9f63e17677388c25e3 (diff) | |
download | gitlab-ce-967eb8fb550b8225177b8cb7f87afd81cfd0c213.tar.gz |
Merge branch 'master' into per-build-token
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 8a9d7555393..dd984aef318 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -85,11 +85,14 @@ module Ci after_transition any => [:success] do |build| if build.environment.present? - service = CreateDeploymentService.new(build.project, build.user, - environment: build.environment, - sha: build.sha, - ref: build.ref, - tag: build.tag) + service = CreateDeploymentService.new( + build.project, build.user, + environment: build.environment, + sha: build.sha, + ref: build.ref, + tag: build.tag, + options: build.options[:environment], + variables: build.variables) service.execute(build) end end |