Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,539
Community Members
 
Community Events
168
Community Groups

Microsoft Teams Bamboo Connector supports Bamboo Specs

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.

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events