Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,742
Community Members
 
Community Events
176
Community Groups

REST API to create, branch and run a plan.

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

1 answer

1 accepted

1 vote
Answer accepted

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/

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events