Hi,
I have a deployment project with DEV/QA env and created releases in the project. Before deploying any build, I want to check if the release is approved.
Has anyone done this. Can you throw some light on how to achieve this.
I got the REST URL to find the status of any release using
/latest/deploy/version/{id}/status
This query required id and I am unable to find the ID for my release string (eg: 1.0.0-dev ). what i understood is release id is a unqiue id created for the deployment project / env and it is stored in database.
Any help is appreciated.
Thanks,
Subbu
Hi Alex,
Thanks.. had this in mind. I was looking for a clean way to get this done.
Regards,
Subbu
What do you mean clean way?
You can call such REST calls
curl 'http://localhost:9087/bamboo/rest/api/latest/deploy/project/all' -u admin:admin -H "Accepts: application/json"
to get list of deployment projects and see what project id has each deployment project
Then
curl 'http://localhost:9087/bamboo/rest/api/latest/deploy/project/{deploymentProjectId}/versions' -u admin:admin -H "Accepts: application/json"
to get list of versions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Alex/Subramanian,
I have the same requirement. In my opinion, what subramanian wanted was for next release , we could have used bamboo environment variable for getting the release versionId. I am not sure whether {deploymentProjectId} gets the versionId value at runtime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Subramanian Olagappan,
Open created release details at Bamboo UI and look at URL: deploy/viewDeploymentVersion.action?versionId=1440874497
There you can get release id for REST call
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.