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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.