Stash currently doesn't support this functionality directly but bamboo comes with scripts to trigger a build via a post-receive hook in the git repository. If you need to locate the repository on disk I would suggest using the Repository System Info Plugin. We will be looking at building this functionality into Stash in the future as well as other integration features.
You can do this by installing the Stash Web Post Hooks Plugin (free and from Atlassian).
On each repository you can then configure this webhook to trigger a build using the REST API of Bamboo.
An example REST url for triggering a build:
Gerard's post with the example REST url was key for me.
Daniel's test by entering the url directly into a browser helped in debugging. I too eventually got "A build of PROJ-PLAN was triggered by remote http call." without a build initiating.
The final piece for me was adding the url pattern "/bamboo/api/rest/updateAndBuild" in the "Application Links - Incoming Authentication - Trusted Applications - URL Patterns" area.
By the way, there is now an example hook plugin project now that allows you to ping a URL after a push to Stash:
However, it requires a bit of knowledge of Java, Atlassian Plugin SDK & Maven.
After creating the JAR file, you can install it into Stash via its Administration interface.
Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot