-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Windows 7 64 bit
groovy-plugin version 1.25
jenkins 1.594
groovy-version 2.3.4
I cant set script parameters and properties with spaces correctly.
I have a step "Execute Groovy script" with the command:
println System.getProperty("param")
Double qoutes
The script parameters: -Dparam="a b"
The Properties: param="a b"
Both print: null
Single qoutes
The script parameters: -Dparam='a b'
prints: null
The Properties: param='a b'
prints: 'a b'
The string contains the single qoutes
My workaround is to use properties with single qoutes and remove them within the script.
- depends on
-
JENKINS-23617 Cannot use spaces in groovy script parameters
-
- Resolved
-
-
JENKINS-24757 Allow spaces in script parameters
-
- Resolved
-