-
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.
I'm seeing the make executable functionality turned on by default, which then changes the permissions to something like this on Amazon Linux AMI 2011.09:
Then I get a permission denied error. I think the what chmod is being run is wrong. The first fix is to stop setting executable by default.