Skip to content

Commit

Permalink
Merge pull request #4 from rklaren/master
Browse files Browse the repository at this point in the history
Bugfix for JENKINS-9553 tested on Jenkins 1.435, linux master <> windows 7 slave and linux master <> linux slave on master. Please double check since I'm not familiar with jenkins coding :)
  • Loading branch information
gboissinot committed Oct 30, 2011
2 parents f2e46e4 + 6630df2 commit 19fb74b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/hudson/plugins/gradle/Gradle.java
Expand Up @@ -137,9 +137,8 @@ private boolean performTask(boolean dryRun, AbstractBuild<?, ?> build, Launcher
if (ai == null) {
if (useWrapper) {
String execName = (Functions.isWindows()) ? GradleInstallation.WINDOWS_GRADLE_WRAPPER_COMMAND : GradleInstallation.UNIX_GRADLE_WRAPPER_COMMAND;
FilePath workspace = build.getModuleRoot();
File gradleWrapperFile = new File(workspace.getRemote(), execName);
args.add(gradleWrapperFile.getAbsolutePath());
FilePath gradleWrapperFile = new FilePath(build.getModuleRoot(), execName);
args.add(gradleWrapperFile.getRemote());
} else {
args.add(launcher.isUnix() ? GradleInstallation.UNIX_GRADLE_COMMAND : GradleInstallation.WINDOWS_GRADLE_COMMAND);
}
Expand Down

0 comments on commit 19fb74b

Please sign in to comment.