Permalink
Browse files

Merge pull request #6 from vsnijders/fix_workspace

Use getWorkSpace instead of getModuleRoot to set the working directory
  • Loading branch information...
2 parents a13e799 + 8d0afa9 commit 3c8ade87668935451c739cec0fd04979a4224d51 @mambu mambu committed Nov 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/hudson/plugins/xshell/XShellBuilder.java
@@ -97,11 +97,11 @@ public boolean perform(final AbstractBuild<?, ?> build, final Launcher launcher,
LOG.log(Level.FINEST, "Environment variables: " + env.entrySet().toString());
LOG.log(Level.FINE, "Command line: " + args.toStringWithQuote());
- LOG.log(Level.FINE, "Working directory: " + build.getModuleRoot());
+ LOG.log(Level.FINE, "Working directory: " + build.getWorkspace());
try {
final int result = launcher.decorateFor(build.getBuiltOn()).launch()
- .cmds(args).envs(env).stdout(listener).pwd(build.getModuleRoot()).join();
+ .cmds(args).envs(env).stdout(listener).pwd(build.getWorkspace()).join();
return result == 0;
} catch (final IOException e) {
Util.displayIOException(e, listener);

0 comments on commit 3c8ade8

Please sign in to comment.