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 ?
Based on your requirement, you indeed can use the
Definition namefield andcontainsoperator to achieve it.Here is an example:
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.