-
Bug
-
Resolution: Unresolved
-
Major
-
None
Global properties that reference other global properties are only partially expanded by EnvVars.expand()
Reproduce steps:
- Define global property INNER with value Foo
- Defined global property OUTER with value $INNER/Bar
- Create a FreeStyle project with a System Groovy build step containing the following code:
println build.getEnvironment(listener).expand('${OUTER}');
Expected output is: Foo/Bar
Actual output is: $INNER/Bar
Performing same test on Jenkins v 1.625 results in correct output. Not sure when it changes as I'm currently upgrading systems from 1.625 to 2.150