How to send email notification before build

This question is in reference to Atlassian Documentation: Configuring notifications for a plan and its jobs

We have a requirement to send an email communication to the list of user before the build start.

How do I configure this in bamboo server ?

I don't see any notification type to trigger an email on pre-build event.

 

2 answers

There is no plugin available for this.

 

YOu can two ways:

 

  1.  Write ur own plugin or extend repository before event module
  2. if you are not expert in bamboo devlopment, use script task and execute script to send email.

What exactly you trying to achive by sending email before plan execution.

 

If you want use inbuilt notification refer:  https://confluence.atlassian.com/bamboo/configuring-notifications-for-a-plan-and-its-jobs-289276973.html#Configuringnotificationsforaplananditsjobs-events

Thanks Siddu for you answer.

could you please explain little more on the above 2 points. I am from .Net world and can I write a bamboo plugin on .net ? Also for the #2, I have used script task heavily in my build plan to do the MSBuild, copy the file , to run powershell script and all. Is their a way to send email through script task ? Any URL link or steps on this will be highly helpful for me.

  1. No, your plugin should be compiled to Java bytecode
  2. http://tecadmin.net/ways-to-send-email-from-linux-command-line/# and http://www.howtogeek.com/120011/stupid-geek-tricks-how-to-send-email-from-the-command-line-in-windows-without-extra-software/

In solution 2 email will be sent by OS or 3rd party library which you have to configure separately.

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 51m ago in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

7 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you