Move building of pipeline metadata to its own step in chain
What does this MR do and why?
Describe in detail what your merge request does and why.
As suggested in !101399 (comment 1147850925), create a Chain::PopulateMetadata
class and add it to the chain of steps in CreatePipelineService
. Move the building of the Ci::PipelineMetadata
model from the Chain::Populate
class to the Chain::PopulateMetadata
class.
This MR also makes sure that the chain is broken (pipeline creation errors out) if there is an error in the Ci::PipelineMetadata
model.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Error message that appears on UI when the pipeline name is invalid:
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.