Custom email notification on build completion in Azure DevOps

1.3k Views Asked by At

Background -

I have multiple jobs running under my Azure DevOps project. I have set the custom email notification on the build completion to send emails to specific users.

Issue -

This notification works properly for all the build pipelines which are created under this project. But I want to set the notification for some of the jobs/definitions only which starts with the some word. I can see the filter field Definition name and operator contains but I'm not able to find it's description on Microsoft documentation regarding it's usage.

So what's the way to get build completion notifications for few jobs in which definition name contains specific word or starts with some name ?

1

There are 1 best solutions below

2
Kevin Lu-MSFT On

the way to get build completion notifications for few jobs in which definition name contains specific word or starts with some name

Based on your requirement, you indeed can use the Definition name field and contains operator to achieve it.

Here is an example:

enter image description here

The value field can be set to a word/string/part of a word.

For example:

Definition name contains tes -> the build definition name contains word tes(e.g. test, test-xx and so on) will send notification after build completing.

I checked the official documentation and it seems that there is currently no detailed description of this field.