Details
-
Bug
-
Status: Resolved (View Workflow)
-
Blocker
-
Resolution: Fixed
-
perforce-plugin 1.3.28
Description
Assume a project has a parameter called "paramA" with a default value of "defaultValue". Also assume the client name format is set to ${nodename}_${paramA}. If the project is build with the parameter definition "paramA=otherValue" the effective client name resolved will still be <nodename>_defaultValue rather than <nodename>_otherValue as expected. This is because the default project substitutions are made first.
Attachments
Issue Links
- is related to
-
JENKINS-25559 Missing hash in client names if ClientNameFormat substitution fails
-
- Resolved
-
-
JENKINS-23467 Streamline the variables handling
-
- Resolved
-
Code changed in jenkins
User: Oleg Nenashev
Path:
src/main/java/hudson/plugins/perforce/utils/MacroStringHelper.java
http://jenkins-ci.org/commit/perforce-plugin/7b22e0b18e27941d07269d53b63e3720841944e5
Log:
[FIXED JENKINS-25226] - Resolve environment variables with a highest priority
Other variables (projects, default parameters, etc.) will be used in the case of missing macros.
It should not happen in general, but may appear in buildEnvironment()
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>