History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-32
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Robin Shen
Votes: 3
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Be able to inherit and override environment variables through the configuration hierarchy tree

Created: 06/Mar/06 03:36 PM   Updated: 01/Apr/15 12:59 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
I'd like to be able to inherit environment variables across configurations, just like I do for variables. It's normal to have a single set of JAVA_HOME, ORACLE_HOME etc set for a whole tree (e.g. set of builds), and I found it tedious to have to add explicit environment variables to every builder I created (although I did use ognl expressions to get the actual value to set from a variable, so it's easy to change a path). If you allowed env vars to be defined/inherited, and implicitly set on all builders, then this would be much easier. Each builder could have the option to add their own env vars (obviously), and I could see that it *might* be useful to have a builder checkbox that allowed that builder to not inherit parent env vars.

 All   Comments   Work Log   Change History      Sort Order:
Don Ross [10/Mar/15 06:04 PM]
I think I found a way to accomplish this in the current 6.0 implementation. If I define an environment variable in the 'master' step (or in any composition step) then that environment variable should be inherited and used by all execution steps below it. At least this is how it appears in the documentation. Can you confirm?

Robin Shen [10/Mar/15 11:30 PM]
Yes they will be inherited by all build steps (command line, ant, maven, etc).

Don Ross [31/Mar/15 02:34 PM]
In that case, I believe this may be resolved? Or do you have a better solution in mind down the road?

Robin Shen [01/Apr/15 12:59 AM]
Yes, this should be marked as fixed. Thanks for remind.