Alternative Repository Triggers for Bamboo Home
User commit code to their various projects under dedicated or shared repositories.
post-commit script can be replicated across all repositories without any updates. It passes the repository path to a single endpoint in bamboo.
That endpoint examines the path to fire any plans that:
- Are using a linked repository that matches the path
- have a "triggered by repository" trigger
- are using a sub-path with a newer revision (i.e. actually changed)
Installation / Usage
- Install plugin via UPM/Marketplace
- Customize and distribute the sample post-commit file to any SVN repositories with projects using Bamboo
- make sure the value passes in the json snippet is a substring of the repository path on the filesystem. see more
- save in ./hooks/post-commit and make sure it's executable (+x)
- Convert legacy repositories (plan level) to linked via the Config UI (this is the default for 5.6+)
- Never worry about updating the hooks again as teams divide, split, refactor, grow, evolve. The mapping is baked in!