-
Bug
-
Resolution: Fixed
-
Major
-
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.