Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get Bamboo plugin plan variable at configuration?

Tejas B July 27, 2017

I know that we get can plan variables at bamboo task execution through taskContext. But how do we get those plan and environment variables at time of task creation?

1 answer

0 votes
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2017

I think you need to use Inject Bamboo Variables task to pass a value between stages.

The file should be in the following format:

variable1=value

variable2=value

Bamboo will then allow each variable to be accessed using the bamboo.inject. prefix followed by the key name.

Eg: bamboo.<namespace>.variable1 where "namespace" is a string defined in the task.

Let me know if this is what you are looking for. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events