I am using the Gradle Jenkins plugin to create a Jenkins Job that executes a Gradle build. I have a couple of parameters that are always required and these are passed to a Jenkins “Parameterized build”. These parameters are correctly passed to gradlew.bat with the following format:
Now there are some additional parameters that are dynamic in nature and I’d prefer to use a single Jenkins parameter such as “AdditionalParamters” and pass these values like so:
If I use such a parameter, then the value passed to Gradle is “-DAdditionalParamters=-DoptionalParam1=value1 -DOptionalParam2=value2” and this is not what I’d intended to pass.
So are there any means of passing multiple System parameters to gradle by using a single Jenkins parameter?