-
Bug
-
Resolution: Fixed
-
Trivial
-
Jenkins ver. 1.500
The function hudson.Util.replaceMacro(String, ...) does not resolve properties with '.'
E.g. many java properties or build parameters do/can have a dot in their names which cannot be expanded by this method which seems to be used by some plugins.
Please add the dot to hudson.Util.VARIABLE pattern.
Thx
- is related to
-
JENKINS-22222 Check variable names as Jenkins core expands
-
- Closed
-
I've picked resolving this issue as an easy first contribution to Jenkins. First, I'd like to discuss backwards compatibility. Given these <key,value> mappings: <A,a>, <B,b> and <A.B,a-b>. How should $A.B and ${A.B} be evaluated? I think $A.B should evaluate to a.B, as it currently does, and ${A.B} to a-b instead of the current ${A.B}. With that scheme:
1) References to keys with dots must use brackets.
2) Existing ${A.B}-like references will break if there actually is an A.B key defined, which I think is very unlikely.
Is this an acceptable resolution?