-
Bug
-
Resolution: Fixed
-
Minor
-
None
If you inject a properties file with new line characters it is not parsing these correctly. Also it appears to be treating the properties file and the properties content differently.
To address this issue I submitted a pull request to force parsing as a standard Java properties object and then also extracted the parsing logic to be the same for both the content box and property files.
- is duplicated by
-
JENKINS-38561 Problems occurs on injecting env vars as a build step: Malformed \uxxxx encoding.
-
- Open
-
-
JENKINS-20334 envInject leaves in backslash for #, !, =, :
-
- Resolved
-
- is related to
-
JENKINS-38607 Wrong parsing of 'property content' drops backslash from string
-
- Resolved
-
-
JENKINS-45631 Environment Injector Plugin Doesn't work with the Latest Versions of Jenkins
-
- Resolved
-
-
JENKINS-39131 Backslashes are removed from injected environment variables
-
- Closed
-
- links to
Nice. I've been troubleshooting a problem with a Windows build that injects a multi-line properties file. All of my Linux jobs that inject multi-line properties files work OK.
As a workaround, I was able to get it to get the property file to inject correctly in Windows by running unix2dos on it as a build step.