Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Email notifications to committers of a build or deployment

We use Bamboo's DSL using Groovy to build our "Plans". After the build was put into place, we noticed that we weren't receiving any email notifications for failed or successful builds. 

Email notifications are essential for build tools so it saves you potential time of checking the build everytime.

This is how we added notifications for builds to trigger an email to all committers in that build.

plan(key: 'CI', name: 'My SERVICE CI', description: 'CI Build') {
project(key: 'SVE', name: 'Service Project')
repository(name: repositoryName)
notification(type:'Change of Responsibilities',recipient:'responsible')
notification(type:'Comment Added',recipient:'responsible')
notification(type:'Job Hung',recipient:'responsible')
notification(type:'Failed Builds and First Successful', recipient:'responsible')
}

And this is how we enabled the notifications for Deployment plans. The notification needs to be added to each environment block instead of the deployment block.

environment(name: 'Prod East') {
notification(type:'Deployment Started and Finished',recipient:'responsible')
notification(type:'Deployment Failed',recipient:'responsible')
notification(type:'Deployment Started and Finished',recipient:'jiraDeployInfo',
jiraSiteUrl:jiraToNotify,environmentType:'production')
}

 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events