Skip to content

Create snowplow event when a pipeline with name is created

Reuben Pereira requested to merge rp/track-pipeline-name into master

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.

#388113

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.

  1. Choose a project in your local GDK where you can run a CI pipeline.

  2. 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'
  3. Start a pipeline.

  4. Open the pipeline list page and make sure that the name is displayed in place of the commit title.

  5. 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.

Edited by Reuben Pereira

Merge request reports

Loading