Move Seed logic for Deployment and Environment to Service class
What does this MR do and why?
This MR moves logic of creating Environments/Deployments to service classes from seed classes. This allows us to use the same service in the other places, such as Job retry and play.
- Logic in
Pipeline::Seed::Deployment
is moved toDeployments::CreateForBuildService
- Logic in
Pipeline::Seed::Environment
andPipeline::Chain::EnsureEnvironments
is moved toEnvironments::CreateForBuildService
Notes:
- No business logic is changed.
- Preparation for !103196 (closed)
- Closes Move `Gitlab::Ci::Pipeline::Seed::Deployment/En... (#348778 - closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Shinya Maeda