summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-09-14 22:33:56 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-09-19 10:07:12 +0200
commit2cc9a785dfdada5e2976b8341d3c9e6eae8fa66f (patch)
treebd291b0cabd3e6784f07f8f75f6981f4b6908bd4 /app/models
parent08272ec1513cbd565e5db5995a681c25e1f4544f (diff)
downloadgitlab-ce-2cc9a785dfdada5e2976b8341d3c9e6eae8fa66f.tar.gz
Properly create deployment using all possible options
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index abdf8c76447..47dedef38d0 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -79,13 +79,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,
- options: build.options[:environment],
- variables: variables)
+ service = CreateDeploymentService.new(
+ build.project, build.user,
+ environment: build.environment,
+ sha: build.sha,
+ ref: build.ref,
+ tag: build.tag,
+ options: build.options[:environment],
+ variables: variables)
service.execute(build)
end
end