Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Trivial
-
Resolution: Fixed
-
Component/s: core
-
Labels:
-
Environment:Jenkins ver. 1.500
-
Similar Issues:
Description
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
Attachments
Issue Links
- is related to
-
JENKINS-22222 Check variable names as Jenkins core expands
-
- Closed
-
Code changed in jenkins
User: Larry North
Path:
core/src/main/java/hudson/Util.java
core/src/test/java/hudson/UtilTest.java
http://jenkins-ci.org/commit/jenkins/f664639b79d2dea2abdf48816b01f8ccc525a73f
Log:
[FIXED JENKINS-16660] Allow variable names with dots in bracketed references.
Given these <variable,value> mappings: <A,a> and <A.B,a-b>, $A.B would
evaluate to $a.B, as it currently does, and ${A.B} to a-b instead of the
current ${A.B}.
Existing ${A.B}-like references will break (not evaluate to ${A.B}) if
there actually is an A.B variable defined, which I think is very
unlikely.
(cherry picked from commit 3376cf01580ecd9cd099b5513874c8bed2490839)