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
Is it possible to checkout branches in Bamboo using a dynamic value? For instance, if I have a value of 1.0.2, then I want Bamboo to check out and build 1.0.2. If the value is 2.0.2, then I need Bamboo to check out and build 2.0.2.
You want them to be checked out all at once? Or just select certain branches for build? You can use the checkout task to pick any branch you like.
There is also an option to enable branch plans if you just want to build all the branches.
Thank you for your responses but I'm not sure how I can accomplish my task with those resources you've linked.
To clarify - can Bamboo check out a given branch from a given repo, and perform the build using a dynamic value for what branch to check out.
So, if my dynamic value is 1.0.2, then I want the Bamboo plan to checkout and build branch 1.0.2. If it says 2.0.2, then I want to checkout and build branch 2.0.2. If this is possible, where would I set the dynamic value?
I'm looking at the Script task now. You're referring to using the 'Argument' field as the variable correct? I.e., if I want branch 1.0.2, then the 'Argument' field would be '1.0.2' which would then be passed into the script file. That sounds like it should work.
Would it be possible to change the 'Argument' field on-the-fly? For instance, having an 'Argument' of 1.0.2 and a Powershell script that takes that argument, and retrieve branch 1.0.2 for a specific repo would be fine. However, what if I wanted to check out multiple repos? Is there a Bamboo REST API call that would allow me to dynamically create a new Script Task OR update an existing one?
Is it possible in bamboo to add 2 checkout tasks. One for the dynamically allocated branch, which is decided on branch build, and one for the default branch.
The target is to have e.g. master and branch of master available during the build. But not have all the branches available.
To avoid checking out all the branches, to save time and disk io etc during the build,