Navigation Menu

Skip to content

Commit

Permalink
[FIXED JENKINS-11423] perform parameter substitution on clientSpec pa…
Browse files Browse the repository at this point in the history
…th when using a file from perforce for the client spec.
  • Loading branch information
rpetti committed Oct 21, 2011
1 parent 8f110ae commit 269c541
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/hudson/plugins/perforce/PerforceSCM.java
Expand Up @@ -1222,7 +1222,13 @@ else if (localPath.trim().equals(""))
// we could copy from a master clientspec to the slaves.

if (updateView || creatingNewWorkspace) {
if (useClientSpec) {
if (useClientSpec) {
String clientSpec;
if(build!=null){
clientSpec = substituteParameters(this.clientSpec, build);
} else {
clientSpec = substituteParameters(this.clientSpec, getDefaultSubstitutions(project));
}
log.println("Read ClientSpec from: " + clientSpec);
com.tek42.perforce.parse.File f = depot.getFile(clientSpec);
projectPath = f.read();
Expand Down

0 comments on commit 269c541

Please sign in to comment.