diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 16:17:46 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-16 11:50:59 +0200 |
commit | 72818f2c1573b7664d4b41692dc51db1e5c28fbb (patch) | |
tree | ad691134ff26ac1cb2e5335571c3f50ed9286897 /app/models/ci/build.rb | |
parent | 2550c1c2bc70beb14293eebb243a2f6f3039d04b (diff) | |
download | gitlab-ce-72818f2c1573b7664d4b41692dc51db1e5c28fbb.tar.gz |
Fix creation of deployment on build that is retried, redeployed or rollbackfix-deployment-creation-on-build-retry
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index e189dbac285..b24527247e0 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -53,6 +53,7 @@ module Ci new_build.stage_idx = build.stage_idx new_build.trigger_request = build.trigger_request new_build.user = user + new_build.environment = build.environment new_build.save MergeRequests::AddTodoWhenBuildFailsService.new(build.project, nil).close(new_build) new_build |