Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Ubuntu Linux 12.04; Jenkins 1.508; Gradle 1.4
Description
Our builds use $HOME/.gradle/gradle.properties to store secrets (i.e. Artifactory username/password).
After upgrading to 1.22, this file does not seem to be loaded.
Likely related: https://github.com/jenkinsci/gradle-plugin/commit/e3c13fb8ad5929d33dc657de24a2ba6e715c8a02
Possible workarounds:
- Revert to 1.21
- Copy the file into the workspace via shell (or some other pre-gradle step)
As others have stated, changing the GRADLE_HOME to be inside the workspace is not expected behavior, breaks things for many people, and should be there as an option for those who want it and NOT be the default. Also, this change was very poorly communicated in the changelog. "Always set GRADLE_HOME" doesn't really describe what changed.