Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14912

Gradle plugin - Permission denied when running gradlew

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • gradle-plugin
    • None
    • Ubuntu Precise. Jenkins run with it's own user (not as root).

      Immediately after upgrading to Gradle plugin version 1.18, I received the following error in the build console when running any Gradle build with the Gradle wrapper:

      [workspace] $ /var/lib/jenkins/jobs/gradle-cobertura-plugin/workspace/gradlew clean check
      /bin/bash: /var/lib/jenkins/jobs/gradle-cobertura-plugin/workspace/gradlew: Permission denied
      Build step 'Invoke Gradle script' changed build result to FAILURE

      The file permissions on the "gradlew" in the workspace now prevent the jenkins user from executing gradlew, likely due to this commit: https://github.com/jenkinsci/gradle-plugin/commit/a3dc7bcfa1a1e61e90d98c85c9aa0e9b09b5dce2

      Downgrading to 1.17 fixed the issue.

          [JENKINS-14912] Gradle plugin - Permission denied when running gradlew

            gbois Gregory Boissinot
            eriwen Eric Wendelin
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: