REST API: How to deploy a build

How can i deploy

  • "Create new release from build result"
  • "Promote existing release to this environment"

...via REST API?

-----

Im Using https://github.com/sebarmeli/bamboo-api (bamboo-api "framework" in nodejs) - unfortunatelly there are no functions implemented for deploayment...

In other posts ive seen that there are some steps needed to be done in advance. one of them was 

/rest/api/deploy/projectVersioning/"+lastBuildResultKey+"/nextVersion.json

 

but everthing i try fails.

 

is there maybe another js or php framework available for bamboo!?

 

1 answer

0 votes

Hi Michael,

Have you seen the Bamboo REST API documentation?  There is a link to the following call and a description of it's use:

/deploy/project/{deploymentProjectId}/version

I would try that and see if that works for you.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Opsgenie

Getting the Most out of Atlassian and Opsgenie Together

We’re excited to invite you to this action-packed webinar where we will demonstrate how to integrate Opsgenie’s powerful alerting and on-call management tools with your entire Atlassian stack. Mar...

73 views 0 1
Read article

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