-
Bug
-
Resolution: Unresolved
-
Major
-
None
This keeps tripping me.
This will result in invalid properties file format:
environmentVariables {
env 'config', '''multiline
content
'''
}
You have to add sth like
string.replaceAll('\n','\n\\' )
to escape it manually
EDIT: above should work but doesn't because of some bug in the envijector, but
string.replace('\n','\\n')
works
[JENKINS-61346] environmentVariables doesn't escape multiline content
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' {code} You have to add sth like {{string.replaceAll('\n','\\\\n' )}} to escape it manually |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content } ''' {code} You have to add sth like {{string.replaceAll('\n','\\\\n' )}} to escape it manually |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content } ''' {code} You have to add sth like {{string.replaceAll('\n','\\\\n' )}} to escape it manually |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\\\\n' )}} to escape it manually |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\\\\n' )}} to escape it manually |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\\\n' )}} to escape it manually |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\\\n' )}} to escape it manually |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\n')}} works |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\n')}} works |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\\\n')}} works |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\\\n')}} works |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\\n')}} works |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\\n')}} works |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\n')}} works |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\n')}} works |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\\n')}} works |
Description |
Original:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\\n')}} works |
New:
This keeps tripping me. This will result in invalid properties file format: {code} environmentVariables { env 'config', '''multiline content ''' } {code} You have to add sth like {{string.replaceAll('\n','\n\\' )}} to escape it manually EDIT: above should work but doesn't because of some bug in the envijector, but {{string.replace('\n','\\n')}} works |