The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Bamboo plugin plan variable at configuration?

Tejas B
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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. 

TAGS
AUG Leaders

Atlassian Community Events