title: Jenkins `Make gradlew executable` option do not make `gradelw executable
body: <p>I have Jenkins setup on linux machine (CentOS) and I tried to build Gradle based project on the master host. My project use <code>Stash</code> Git-based repository as SCM.</p>
  
  <p>In the Jenkins build job I have enabled <code>Clean before checkout</code> option. And I see that <code>gradlew</code> script is checkouted without executable permissions. So, I set <code>Make gradlew executable</code> checkbox for the task. But I still see issue:</p>
  
  <pre><code>java.io.IOException: Cannot run program "/project/dir/gradlew" (in directory "/project/dir/"): error=13, Permission denied
  </code></pre>
  
  <p>I checked <code>gradlew</code> permissions and there is no executable on for the file.</p>
  
  <p>Does anyone know how to debug/setup it? </p>
  
  <p>Now, I have to use addetional build step <code>execute shell script</code> to set executable permissions for <code>gradlew</code>.</p>
  
  <p><em>Note 1</em>: I use <code>Use Gradle Wrapper</code> build option instead of <code>Invoke Gradle</code> because of some suggestions I found in the Internet.</p>
  
  <p><em>Note 2</em>: I found <a href="https://issues.jenkins-ci.org/browse/JENKINS-14780" rel="noreferrer">make gradlew script executable</a> issue and checked that my Jenkins build should contain this fix. I use Jenkins build 1.581</p>