How to Trigger a Build in Bamboo from Stash

This blog post will explain how to set up a Post-Receive Webhook from Stash to notify Bamboo of new changes in the repository.

Trigger a build blog

This blog post will explain how to set up a Post-Receive Webhook from Stash to notify Bamboo of new changes in the repository.

We assume that there is already an integration between Stash and Bamboo. If not you can follow these instructions to set this up : Integrating Bamboo with Stash

Step-by-step guide

  1. Login to Bamboo
  2. Go to the Plan Configuration page.
  3. If the Stash Repository is already know to the plan you can skip these steps and continue with step 4.
  • Go to the Repositories tab
  • Click Add Repository
  • Fill in the details of your Stash Repository
  • Click Save Repository
  1. Go to the Triggers tab.
  2. Click Add Trigger
  3. Fill in the following data:
  • Trigger Description: A name for your trigger
  • Trigger Type: Select Repository triggers the build when changes are committed.
  • Repositories: Select the repository that will trigger this build after a change is committed.
  • Trigger IP Addresses: fill in the IP address of you repository server
  1. Click Save Trigger
  2. Login to Stash
  3. Install the following plugin if you haven’t done this already : Stash web post receive hooks plugin
  4. Go to your repository and select the settings tab
  5. Select Hooks in the left side menu
  6. Click on the pencil icon next to the Post-Receive Webhooks hook 
  7. Fill in the following URL (replace and with your actual keys from Bamboo):
    http:///api/rest/updateAndBuild.action?buildKey=-
  8. Enable the Hook by selecting "Enabled" next to the hook.

Feel free to share this guide, you know you want to …

More about Peter Van De Voorde

Peter is a 30-something Belgian with a passion about everything Agile, during the day he’s an Atlassian Expert and ALM Consultant at RealDolmen. In the evening he’s a family man, an active member of Atlassian Answers, the Atlassian Belgian User Group and a boardgame fanatic.  Find out more at his website: www.petervandevoorde.com

Atlasssian expert resources

Visit our blog for expert news and articles from the Atlassian world. On our resources page you will find recorded webinars, white papers, podcasts, videos and more.

The Software Blog

Read our blog for articles offering best practice advice written by Atlassian experts, as well as the latest news concerning your software.

Software White Papers and Guides

Dive deep into Atlassian software with our white papers and guides on individual tools, partner products, services, and best practices, written by the experts.

Expert Webinars

All of our webinars are pre-recorded and available to watch on-demand. Enjoy everything from partner features to application demos and updates from Atlassian experts.

Subscribe to our newsletter

Atlassian solutions that free your teams

It teams