summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 12:48:19 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-10-17 12:48:19 +0200
commit021263916c3c1560a461ab0d519a309a6f918800 (patch)
treeee1de1b45dacd8eb60001572b4c3b9a0863e5046 /app
parent5f98d059396dc8c0faab4defd0414049c909b6c1 (diff)
downloadgitlab-ce-021263916c3c1560a461ab0d519a309a6f918800.tar.gz
Save `on_stop` in deployment
Diffstat (limited to 'app')
-rw-r--r--app/services/create_deployment_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/create_deployment_service.rb b/app/services/create_deployment_service.rb
index 2e859a30cac..5e6745cdd4e 100644
--- a/app/services/create_deployment_service.rb
+++ b/app/services/create_deployment_service.rb
@@ -32,7 +32,8 @@ class CreateDeploymentService < BaseService
tag: params[:tag],
sha: params[:sha],
user: current_user,
- deployable: @deployable)
+ deployable: @deployable,
+ on_stop: options.fetch(:on_stop, nil))
end
def environment