Create snowplow event when a pipeline with name is created
What does this MR do and why?
Describe in detail what your merge request does and why.
Create a snowplow event when a pipeline with name is created. This will allow us to observe usage of this feature.
The creation of the snowplow event is in the Ci::Pipeline::Chain::Metrics
class since that class seems appropriate for metrics related work.
The Ci::Pipeline::Chain::Metrics
class is part of the chain of classes (services/ci/create_pipeline_service.rb#L40) that is executed during pipeline creation, and it is executed after the pipeline has been created.
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.
-
Choose a project in your local GDK where you can run a CI pipeline.
-
Modify the .gitlab-ci.yml file to add a
workflow:name
. https://docs.gitlab.com/ee/ci/yaml/index.html#workflowname
For example:workflow: name: 'Pipeline name'
-
Start a pipeline.
-
Open the pipeline list page and make sure that the name is displayed in place of the commit title.
-
Open the pipeline details page and make sure that the name is displayed at the top, in place of the commit title.
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.