Skip to content
Permalink
Browse files

JENKINS-11813 : Fix how buildDirectory is computed to work with a rem…

…ote agent
  • Loading branch information
aheritier committed Nov 29, 2011
1 parent 3817940 commit 6840d65bc546fc72af248fb2a065882ab3bf6781
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/au/com/rayh/XCodeBuilder.java
@@ -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;
@@ -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;

0 comments on commit 6840d65

Please sign in to comment.