I am developing a plugin and I need to replace a Bamboo user-defined variable (of a build plan) in a string with the actual value from the source code of the plugin.
I mean, replace:
"Hello, I'm ${bamboo.author}"
with:
"Hello, I'm Luis"
, supposing that author=Luis in this moment.
How can I achieve this?
Needless to say that I don't want to parse the string manually (looking for "author", "${" or whatever), since this is not an elegant option. I really think that the Bamboo API provides something to list defined variables of something like that.
Thx,
Luis