Skip to content

Commit

Permalink
[JENKINS-14787] added P4USER as a valid parameter substitution during…
Browse files Browse the repository at this point in the history
… polling
  • Loading branch information
Rob Petti committed Aug 20, 2012
1 parent 8587acc commit 901aac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/perforce/PerforceSCM.java
Expand Up @@ -563,7 +563,7 @@ public Object readResolve() {

private Hashtable<String, String> getDefaultSubstitutions(AbstractProject project) {
Hashtable<String, String> subst = new Hashtable<String, String>();
subst.put("JOB_NAME", getSafeJobName(project));
subst.put("JOB_NAME", getSafeJobName(project));
for (NodeProperty nodeProperty: Hudson.getInstance().getGlobalNodeProperties()) {
if (nodeProperty instanceof EnvironmentVariablesNodeProperty) {
subst.putAll(((EnvironmentVariablesNodeProperty)nodeProperty).getEnvVars());
Expand All @@ -583,7 +583,7 @@ private Hashtable<String, String> getDefaultSubstitutions(AbstractProject projec
}
}
}

subst.put("P4USER", substituteParameters(p4User, subst));
return subst;
}

Expand Down

0 comments on commit 901aac9

Please sign in to comment.