Bamboo with VSTS

If you use Bamboo to build your apps, you can store your code in VSTS and continue to use Bamboo for your continuous integration builds. You can trigger a Bamboo build when you push code to your team project's Git repository, when you check code in to Team Foundation version control, or when a VSTS build finishes.

Configure Bamboo

  1. If you haven't already, set up a Bamboo server.

  2. If you use Bamboo on-premises, enable HTTPS on your Bamboo server.

  3. If your team project uses Team Foundation version control and not Git, install the TFS respository add-on for Bamboo.

Enable VSTS basic authentication

  1. If you haven't already, enable alternate credentials in your VSTS profile. Be sure to set a secondary user name because you won't be able to use your email address to connect VSTS to Bamboo.

    Profile, credentials tab, alternative credentials enabled wiht a secondary user name

Set up a Bamboo build plan

  1. In Bamboo, create a new plan by choosing Create > Create a new plan from the menu bar.

  2. Under Link repository to new build plan, choose Other > Git and set the URL for your Git repository in VSTS. The URL is in the form https://{VSTS account}.visualstudio.com/DefaultCollection/_git/{team project name}.

  3. Next to Authentication Type, choose Username/password and enter the alternate credentials of a VSTS account with read access to the repository.

    Repository settings with Git selected

Trigger Bamboo from VSTS

  1. Go to your VSTS project service hooks page: https://{account_name}.visualstudio.com/{project_name}/_apps/hub/ms.vss-servicehooks-web.manageServiceHooks-project

    Team project administration page

    Click Create Subscription.

  2. Add Bamboo.

    Select target service dialog box, Bamboo selected

  3. Pick the event from VSTS that you want to trigger a build in Bamboo.

    Configure event dialog box

  4. Configure the action you want Bamboo to take.

    New service hook subscription dialog box

Now, when that event occurs in VSTS, your Bamboo build will be triggered.

Pricing

VSTS doesn't charge for the framework for integrating with external services. Check out the specific service's site for pricing related to their services.

Q & A

Q: Can I build part of my app in VSTS and part in Bamboo?

A: Yes. You can trigger a Bamboo build when your VSTS build is completed so that you use both systems to build your app.

Q: Can I programmatically create subscriptions?

A: Yes, use REST APIs.