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,293,210
Community Members
 
Community Events
165
Community Groups

Bamboo - REST API - How to pass a variable into a deployment plan ?

Edited

I'm trying to deploy a plan that has artifacts from external service for this I want to download via curl those files that I will pass as variables... however I am not able to set programmaticly the variables with the deployment call

 

For a build plan we can pass it like 

curl -k -u user:passord -X POST -d "bamboo.myVariable=someurl" BASE_BAMBOO_URL/bamboo/rest/api/latest/queue/PROJECT-ID

But trying to do the same with the deployment API fails

curl BASE_BAMBOO_URL/bamboo/rest/api/latest/deploy/project/1321123123 -u user:passord -X POST -d "bamboo.myVariable=callMEwithDATA"

Also trying to add that into the API fails as does trying to pass it thru JSON

curl -X POST BASE_BAMBOO/bamboo/rest/api/latest/deploy/project/1320058 -u user:passord -H "Accepts: application/json" -H "Content-Type: application/json" -d '{"name":"release-1", "myVariable":"ARTEFACT_URL"}'

1 answer

Thank you for your reply. I have worked around unfortunately like many things with Bamboo, perhaps it is time to reboot Bamboo, it just feels very old and not flexible at all, the API seems like it was built in total isolation from each other. I am forced to use Bamboo for work, but honestly the amount of time wasted working around it is very sad.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

908 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you