Bamboo cloud slack integration
Asked by Shai:

Hi

Anyone know of a way to integrate slack with bamboo cloud?

Since there is no webhooks to bamboo nor custom notifications, how one can send bamboo notification to slack?

e.g. - at the end of build process, i would like to have notification in slack

Thanks


Answers:
author: Steffen Opel _Utoolity_
body: There are two Slack notification add-ons available in the Atlassian Marketplace, which address these requirements for Bamboo Server scenarios (I realize that you are on Bamboo Cloud, see below):

* [Slack Bamboo Plugin](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.bamboo-slack) (free)
* [Slack Notifications for Bamboo](https://marketplace.atlassian.com/plugins/com.cleverflame.bamboo.slacknotify) (commercial)

Unfortunately 3rd party add-ons are not available for Bamboo Cloud yet, please vote/watch/comment on the following issue to raise Atlassian's priority for addressing this notable gap in their Cloud offerings:

* <https://ecosystem.atlassian.net/browse/AC-1193>

### Bamboo Webhooks {#toc-hId-1482273636}

Unfortunately Bamboo indeed does not offer webhooks as of today either, please vote/watch/comment on the resp. feature request <https://jira.atlassian.com/browse/BAM-14321> to raise awareness for this surprising limitation (given webhooks are meanwhile first class features and powerful extension points in [JIRA](https://confluence.atlassian.com/display/JIRA/Managing+Webhooks) and [Stash](https://confluence.atlassian.com/display/STASH/POST+service+webhook+for+Stash) for example, and have recently seen significant improvements in [Bitbucket](https://blog.bitbucket.org/2015/06/24/the-new-bitbucket-webhooks/) as well).

### Possible Workaround {#toc-hId--1069883325}

Depending on your specific requirements, you might be able to piggy back a custom automation solution on top of the existing [Notifications](https://confluence.atlassian.com/bamboo/notifications-289276969.html) channels, for example with a dedicated email address or HipChat room, and generate a slack notification from there.

* the most natural channel for integration scenarios would usually be RSS, but unfortunately [RSS Subscriptions](https://confluence.atlassian.com/bamboo/subscribing-to-rss-feeds-289276970.html) lack the flexible and granular [Notification Configuration](https://confluence.atlassian.com/bamboo/configuring-notifications-for-a-plan-and-its-jobs-289276973.html) for the other channels in turn


author: Jeremy W Walker
body: We have been using Zapier to integrate our Cloud Bamboo and AWS into slack. Works pretty well.


author: Alex Soto
body: I suppose if you want to be guaranteed everything passed, but if the notification is the last step in the plan, everything effectively has. You may get some intermittent failures unless you design the notification to not return a non-zero exit code so the build step doesn't fail (use retries, etc). I do very similar to notify New Relic and Librato of deploys and I'm happy with the results.

<br />

If you really want to be notified after the build, create a dependent build that is triggered from the one you are interested in, and the only thing it does is run some curl commands to send notifications.


author: Shai
body: @Alex Soto,

If i add a task with a script to my plan, i won't be able to report the plan state since still in the context of the current build.


author: Alex Soto
body: I don't use slack, but I think you can add a step to run a script or a direct curl command and post a message into slack

<https://api.slack.com/incoming-webhooks>


Tags: cloud