Fix creation of deployment on build that is retried, redeployed or rollback
What does this MR do?
Add missing environment
to be copied when retrying a build.
Why was this MR needed?
The retried builds did not create a deployments.
What are the relevant issue numbers?
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/19521
-
CHANGELOG entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together