title: Cannot run program "gradle" in Jenkins
body: <p>I've installed the Gradle plugin for Jenkins. When I try to build the project I get the following error:</p>
  
  <pre><code>[workspace] $ gradle clean -b build/build.gradle
  FATAL: command execution failed
  java.io.IOException: Cannot run program "gradle" (in directory "/Users/Shared/Jenkins/Home/jobs/test/workspace"): error=2, No such file or directory
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
      at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:244)
      at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:216)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
      at hudson.Launcher$ProcStarter.start(Launcher.java:338)
      at hudson.Launcher$ProcStarter.join(Launcher.java:345)
      at hudson.plugins.gradle.Gradle.performTask(Gradle.java:201)
      at hudson.plugins.gradle.Gradle.perform(Gradle.java:97)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:695)
      at hudson.model.Build$RunnerImpl.build(Build.java:178)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465)
      at hudson.model.Run.run(Run.java:1404)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:238)
  Caused by: java.io.IOException: error=2, No such file or directory
      at java.lang.UNIXProcess.forkAndExec(Native Method)
      at java.lang.UNIXProcess.&lt;init&gt;(UNIXProcess.java:53)
      at java.lang.ProcessImpl.start(ProcessImpl.java:91)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
      ... 16 more
  Build step 'Invoke Gradle script' changed build result to FAILURE
  Build step 'Invoke Gradle script' marked build as failure
  Finished: FAILURE
  </code></pre>
  
  <p>Running the task <code>$ gradle clean -b build/build.gradle</code> from the command line works as expected.</p>