Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to substitute variables from UI text bamboo task plugin


quick example:

1. I created custom task with text field

2. I put value there: ${} //tried with many others bamboo variables

3. Run build


How I can substitute that string from UI with variable value?

I tried using CustomVariableContext#subsituteString and CustomVariableContext#findAllVariables but without luck.


In other words: 

I have bamboo variable: `bamboo.any.variable=bamboo_any_variable_value`

In task i have variable `String url = ${bamboo.any.variable}`

I want to have: `String substituted = bamboo_any_variable_value`


Is there any way to do that automatically or I have to pare / regex / replace on my own?

1 answer

1 accepted

1 vote
Answer accepted

Ok answered myself.

I was missing bamboo prefix in variable name. E.g.:


Suggest an answer

Log in or Sign up to answer

Atlassian Community Events