Add pipeline name to emails
What does this MR do and why?
Resolves #388929 (closed)
If a pipeline uses the workflow::name
attribute, then use the pipeline name instead of the id in the email notifications for:
- successful pipelines
- failed pipelines
- fixed pipelines
Screenshots or screen recordings
Failed Pipeline
Before | After |
---|---|
![]() |
![]() |
![]() |
![]() |
Successful Pipeline
Before | After |
---|---|
![]() |
![]() |
![]() |
![]() |
Fixed Pipeline
Before | After |
---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
-
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: "Missy's Test"
-
Start a pipeline (Note: Rails mailer previews should use the last record for Ci::Pipeline)
-
Use the rails mailer previews to verify the pipeline name shows in the emails instead of the id for the:
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 Missy Davies