2Aguy
2Aguy

Reputation: 4625

Can a Bamboo project be configured to use the Maven developers section to send build notifications?

I have a Maven project configured in Bamboo (version 5.3). I would like to be able to use the developers section in my pom.xml in order to send build notifications to the developers defined in that section. This was possible in other Continuous Integration tools I have used before. Is there a hook that can be used in Bamboo to make it work?

Upvotes: 4

Views: 865

Answers (1)

ursa
ursa

Reputation: 4601

If you want to use maven project configuration for sending emails, use maven itself for this job. It will work for any environment and CI tool you choose.

  1. Provide 'build-success' + 'build-failed' profiles with configured maven-changes-plugin in your pom.xml.

  2. Add corresponding calls into post-build handling:

    mvn changes:announcement-mail -P build-success # for successful build
    mvn changes:announcement-mail -P build-failure`# for failed build
    

Upvotes: 1

Related Questions