You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
If you use infrastructure as a code with Bamboo and using Java or YAML Bamboo specs, you can configure Microsoft Teams build tasks and notifiers directly in the code. For this you need to use Microsoft Teams Bamboo Connector.
You can see a short video demo here.
With Microsoft Teams Build Task definition use can use Bamboo variable and here is the guide and below is an example of usage of it in the Java and YAML specs.
...
.stages(new Stage("Default Stage")
.jobs(new Job("Default Job",
new BambooKey("JOB1"))
.tasks(new VcsCheckoutTask()
.description("Checkout Default Repository")
.checkoutItems(new CheckoutItem().defaultRepository()),
new ScriptTask()
.description("Build")
.inlineBody("exit 0"),
new AnyTask(new AtlassianModule("com.moveworkforward.bamboo.microsoft-teams-notifier:microsoftTeamsBuildTask"))
.description("MST Build Task")
.configuration(new MapBuilder()
.put("mswebhookUrl", "https://moveworkforward0.webhook.office.com/webhookb2/afad8b60-4507-4100-bff7-f963ae9543ab@57e6a115-9c9a-4cee-9e52-2cae48e2251a/IncomingWebhook/bcc0f209ba554616909d5ed0365acb48/f889a410-e1df-490e-bfae-412eca9d3f60")
.put("msMessage", "The build of Move Work Forward project was successful.")
.build()))))
...
YAML Bamboo Specs
...
Default Job:
key: JOB1
tasks:
- checkout:
force-clean-build: 'false'
description: Checkout Default Repository
- script:
interpreter: SHELL
scripts:
- exit 0
description: Build
- any-task:
plugin-key: com.moveworkforward.bamboo.microsoft-teams-notifier:microsoftTeamsBuildTask
configuration:
mswebhookUrl: https://moveworkforward0.webhook.office.com/webhookb2/afad8b60-4507-41c0-bff7-f963ae9543ab@57e6a115-9c9a-4cee-9e52-2cae48e2251a/IncomingWebhook/bcc0f209ba554616909d5ed0365acb48/f889a410-e1df-490e-bfae-412eca9d3f60
msMessage: The build of Move Work Forward project was successful.
description: MST Build Task
artifact-subscriptions: []
...
Just with a few lines of code you can increase team visibility with Microsoft Teams Bamboo Connector.
If you have any questions - please reach out.
Move Work Forward
Move Work Forward
Move Work Forward
13 accepted answers
0 comments