Skip to content

Add pipeline name to Slack pipeline notifications

What does this MR do and why?

Describe in detail what your merge request does and why.

Pipelines can now have custom names set by a new name attribute in .gitlab-ci.yml. This MR adds the name to pipeline notifications sent to Slack/Mattermost. It will help users identify which pipeline generated the notification without having to open the pipeline.

All changes related to the new pipeline name feature are behind the pipeline_name feature flag, including this MR.

#372538 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

With pipeline name With long pipeline name Without pipeline name or feature flag disabled
Successful pipeline Screenshot_from_2022-11-14_12-50-22 Screenshot_from_2022-11-14_13-59-30 Screenshot_from_2022-11-14_12-50-56
Failed pipeline Screenshot_from_2022-11-14_12-51-40 Screenshot_from_2022-11-14_12-58-51 Screenshot_from_2022-11-14_12-51-16

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.

Edited by Reuben Pereira

Merge request reports

Loading