Have been fiddling with yaml-spec deployments with some late success (that yaml-structure is a hump, you know).
Got email notifications working after some trial and error.
Is it possible to trigger Slack channel notification from yaml-specs too?
If so, what is the recipient type and how do we get the slack channel name and webhook token in there?
My google-fu got me some interesting links (some old, some rudimentary):
And the obvious links to reference docs etc, but no definitive answers.
My guess is that slack notifications is not implemented for yaml-spec yet, though...
This is what I've got now (works):
triggers:
- build-success
notifications:
- events:
- deployment-finished
recipients:
- emails:
- m@j.com
Edit: speling
Hi @matgry
It is possible to do it through Java Specs. I did not find it in our docs for YAML and the Bamboo source code didn't seem to show that option either.
I've opened a feature request to address this:
The easy way to see how to configure this through Java specs is:
This is the part of the code showing the notification you need:
.notifications(new Notification()
.type(new AnyNotificationType(new AtlassianModule("bamboo.deployments:deploymentStartedFinished")))
.recipients(new AnyNotificationRecipient(new AtlassianModule("com.atlassian.bamboo.plugins.bamboo-slack:recipient.slack"))
.recipientString("https://<YOUR_DOMAIN>.slack.com/services/new/incoming-webhook.|#<YOUR_CHANNEL>||"))));
I hope you can use Java Specs instead.
You are welcome @matgry!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do this by sending an email to a slack channel.
1. Set up an email for your slack channel: https://slack.com/intl/en-au/help/articles/206819278-Send-emails-to-Slack
2. Use something like
notifications:
- events:
- plan-failed
recipients:
- emails:
- your-channel-abc123@you.org.slack.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.