You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'd like to use git hooks (pre-push) to trigger a build on bamboo, but using specific branch and repository that it would get from the call. I've got the draft of that working, however it isn't clear to me if I can create a plan from a specified repo, create a branch on that plan, and then run the plan, all from the REST API.
This is related to https://community.atlassian.com/t5/Bamboo-questions/How-can-i-create-and-run-plan-branch-by-rest-api/qaq-p/1262969 however that only touches on what I'm trying to achieve, and it doesn't have a satistactory answer either
For anyone who stumbles across this, I found something that worked for me.
curl -k \
--user "username:password" \
-X POST \
-d "stage&executeAllStages" \
https://bamboo.dexcom.com/rest/api/latest/queue/PD-C8S8769
Credit goes to here: http://www.rndblog.com/bamboo-rest-api-how-to-trigger-a-plan-and-waiting-for-a-result/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.