You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have a Bamboo build plan with a deployment project. Currently, the deployment happens manually and we can select the specific release version to be deployed on the server (using the dropdown field selection). Now, if I add the trigger (on schedule), I believe, it always picks up the latest release version. My requirement is to schedule the deployment project and do the deployment based on the specific release version which is required for the deployment & not necessarily be the latest one.
I tried to call the Bamboo using the REST API curl like below by passing the environmentid and versionid:-
curl -X POST 'http://localhost:8085/rest/api/latest/queue/deployment/?environmentId=1212417&versionId=1310721' -u admin:admin -H "Accepts: application/json"
(please assume, the versionId given as '1310721' is 'release-2'). When I executed the REST call, it did the deployment for this release-2 but when the scheduler executed the deployment project, it again took the latest release version which was 'release-3' and not 'release-2'.
Is there any way to tell the Bamboo, okay, this is the release version which needs to be deployed automatically during the on-scheduled deployment trigger. and if the value (release version) is not given let it pick the latest release version.
Hi @Vinod Kumar ,
The schedule trigger will trigger a deployment based on the latest successful build. If you want to have a schedule trigger based on certain condition(s), you should create a CRON job / Script consuming the REST API as you did (this outside of Bamboo)
If you are looking to have this schedule in Bamboo, then you would be looking at developing a plugin for Bamboo - https://developer.atlassian.com/server/bamboo/