Get Branch Name in Bamboo Deployment Plan
Asked Answered
I

1

9

How can I get the branch name in a script for a deployment plan in bamboo? The variables listed in the documentation show that we can use bamboo.repository.branch.name, but that doesn't seem to work in a deployment plan.

Industrialize answered 18/3, 2015 at 21:42 Comment(0)
H
18

It works for me do It like this:

It's bamboo.planRepository.branchName not bamboo.repository.branch.name

Configuration

And it will output this in the log:

Log1 Log2

I'm using bamboo 5.7, and if it doesn't work, it's probably because of this issue.

Headmaster answered 25/3, 2015 at 6:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.