jenkinsci/gradle-plugin — pull request #7 by rbywater (2012-07-09 02:56:32+00:00)
Title: Change Gradle Wrapper logic to use the launcher's OS type rather than master's OS type when determining Gradle Wrapper script name

In my environment I have a Windows master and a Linux slave. I found I couldn't use the Gradle wrapper option of the plugin when the build was running on the slave as it was trying to use gradlew.bat rather than the gradlew shell script.

This patch changes the logic to look at the whether the slave is Unix or not to determine the wrapper name.