Trigger Bamboo deployment with environment variable via REST API?

I need to trigger deployment with defining deployment environment variables. Is it possible? I tried this but it does not work for my case. Thanks in advance

curl -X POST 'http://localhost:9087/bamboo/rest/api/latest/queue/deployment/?environmentId=1234567&versionId=12121212&bamboo.variable.myvariablename=value'

1 answer

This widget could not be displayed.

I know this request is a bit old, but I would like share that this is the right way of doing it.
We would need the Bamboo version and the returned error to investigate why it was failing.

I just run the same test on 6.6.2 (I know it is pretty new) and it works just fine:

curl -u <USER>:<PASSWORD> -X POST '<BAMBOO_URL>/rest/api/latest/queue/deployment/?environmentId=1441793&versionId=1540097&bamboo.community=hello'

Example of successful server answer:

{"deploymentResultId":1671170,"link":{"href":"<BAMBOO_URL>/rest/api/latest/deploy/result/1671170","rel":"self"}}

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 11 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

32 views 1 2
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you