-
Bug
-
Resolution: Fixed
-
Minor
-
os: ubuntu 14.04.4 lts
jenkins: 1.653
gradle: 3.2
Gradle Plugin: 1.25
groovy: 2.4.7
Possibly incorrect quoting logic for system properties passed to gradle cli.
The problem resides in this property format:
-Dproperty=renaming XYZ >> 'xyz'
which the gradle plugin translates it to:
'-Dproperty="renaming XYZ >> 'xyz'"'
In Jenkins parameters:
property | renaming XYZ >> 'xyz' |
With the help of a gradle team member - wolfs - he marked the code snippet in the gradle-plugin project that may cause this issue.
I previously opened an issue in the gradle project. You can hace a look on the conversation, as the problem is well demonstrated there.
Code changed in jenkins
User: Stefan Wolf
Path:
README.md
src/main/java/hudson/plugins/gradle/Gradle.java
src/test/groovy/hudson/plugins/gradle/GradlePluginIntegrationTest.groovy
http://jenkins-ci.org/commit/gradle-plugin/7752876638cc371cb7dfaf81e35cb5644e8f10e4
Log:
Drop custom parameter escaping
Escaping done by `addKeyValuePairs` is already enough.
[FIXED JENKINS-42573]