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

Are variables created by the Inject Variables plugin in one stage available when rerunning a later stage?

Jay Seletz December 7, 2016

I am using the Inject Bamboo Variables plugin to inject variables in the first stage of my build, using "Result" scope.  The properties file used is produced by first running a script.  Later jobs in later stages depend on these variables.  If a job in a later stage fails, if we select the "Re-run failed/incomplete jobs only" option, should the same variables with the same values still be available? Or does each job need to use the Inject Bamboo Variables plugin with "Local" scope for this to work?

1 answer

0 votes
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 20, 2016

Yes, that's pretty much the point of "result" variables that they are persistent and available during rerunning and in manual stages. (unless you choose to rerun the entire plan of course, in which case the variables will be re-injected).

"Local" scoped variables are only accessible in the subsequent task of the same job.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events