Skip to content
Permalink
Browse files
Add a test for multiline parameters
[FIXED JENKINS-20505]
  • Loading branch information
wolfs committed Mar 12, 2017
1 parent 7752876 commit db9a28079bf437dd9f7c0a8cbd121e9a0c441d46
Showing with 8 additions and 3 deletions.
  1. +1 −1 README.md
  2. +7 −2 src/test/groovy/hudson/plugins/gradle/GradlePluginIntegrationTest.groovy
@@ -10,7 +10,7 @@ In order to release this plugin have a look at [here](RELEASING.md).

## Release Notes
* 1.27 (unreleased)
* Job parameters are now correctly quoted when passed as system properties [JENKINS-42573](https://issues.jenkins-ci.org/browse/JENKINS-42573)
* Job parameters are now correctly quoted when passed as system properties ([JENKINS-42573](https://issues.jenkins-ci.org/browse/JENKINS-42573) and [JENKINS-20505](https://issues.jenkins-ci.org/browse/JENKINS-20505))
* Make finding wrapper location more robust on Windows
* Increase required core version to 1.642.1
* 1.26 (Feb 13 2016)
@@ -188,7 +188,7 @@ task hello << { println 'Hello' }"""))
'build/some/build.gradle' | [rootBuildScriptDir: 'build'] | [null]
}

def "Can use '#propertyValue' in system properties"() {
def "Can use '#escapedPropertyValue' in system properties"() {
given:
gradleInstallationRule.addInstallation()
def p = j.createFreeStyleProject()
@@ -210,8 +210,13 @@ task hello << { println 'Hello' }"""))
'renaming XYZ >> \'xyz\'',
'renaming XYZ >>> \'xyz\'',
'renaming XYZ >> "xyz"',
'renaming \'XYZ >> \'x"y"z\'"'
'renaming \'XYZ >> \'x"y"z\'"',
"""
Some
multiline
parameter""".stripIndent()
]
escapedPropertyValue=propertyValue.replaceAll('\r\n', '\\\\r\\\\n').replaceAll('\n', '\\\\n')
}

def "Config roundtrip"() {

0 comments on commit db9a280

Please sign in to comment.