Skip to content

Commit

Permalink
JENKINS-11813 : Fix how buildDirectory is computed to work with a rem…
Browse files Browse the repository at this point in the history
…ote agent
  • Loading branch information
aheritier committed Nov 29, 2011
1 parent 3817940 commit 6840d65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/au/com/rayh/XCodeBuilder.java
Expand Up @@ -45,7 +45,6 @@

import javax.servlet.ServletException;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -125,7 +124,7 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListener lis
// https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin
try {
symRootValue = TokenMacro.expand(build, listener, symRoot).trim();
buildDirectory = new FilePath(new File(symRootValue)).child(configuration + "-iphoneos");
buildDirectory = new FilePath(projectRoot.getChannel(),symRootValue).child(configuration + "-iphoneos");
} catch (MacroEvaluationException e) {
listener.error(Messages.XCodeBuilder_symRootMacroError(e.getMessage()));
return false;
Expand Down

0 comments on commit 6840d65

Please sign in to comment.