Mateusz Koszewski
Mateusz Koszewski

Reputation: 71

How to set up Azure DevOps notifications to receive after pipeline run fails?

I have two pipelines defined in AzureDevOps, the second (deploy) is triggered when the first (build) succeeds. I have also a branch policy to run build pipeline after each merge to master.

By default, Azure DevOps is set up in a way that I receive an email notification when the build pipeline completes, but I receive no notification after completion of the deployment. How can I receive notifications also for the deploy pipeline?

If triggered manually, the notifications for deployment are being sent, but not when triggered by the build pipeline.

Note that these are both pipelines (defined in YAML), not a pipeline and a release.

Upvotes: 4

Views: 6993

Answers (2)

alex
alex

Reputation: 12654

As an alternative solution, you can try CatLight tool.

It will show desktop notifications for Azure DevOps builds, releases, PRs and work items. So, you will get a desktop alert whenever build or release pipeline fails.

Build failure notification

enter image description here

The tool is free for small teams and open-source projects.

Upvotes: 1

Jane Ma-MSFT
Jane Ma-MSFT

Reputation: 5222

I have reproduced the issue.

If configuring the pipeline triggers in yaml, the notification won't be sent. However, when I configure the triggers in Classic UI, the notification will be sent normally.

Here are the steps about setting build completion triggers using classic UI:

In the edit page of the deploy pipeline, click "More actions" button in upper right corner and select "Triggers":

enter image description here

Then, add a build completion and specify your build pipeline.

Upvotes: 2

Related Questions