Hi,
In Bamboo I'm trying to use the Git branch name as part of my artifacts file name. This is very useful after deployments on our testing environment as we then know exactly where the bits come from.
I've tried using ${bamboo.repository.git.branch} which works great when running "build branches" but when running the base plan (not a branch) the above variable is always returning "Unknown". This is a bit misleading as the variable name suggests it's returning the Git branch and not the Bamboo branch. Is there another variable I could use to get the actually Git branch that was used for the build?
Thanks
I've always used ${bamboo.repository.branch.name}
Thanks Jason!
I'm not sure what the difference is under the hood between those 2 but the variable you mentioned works well and solves the problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.