-
Improvement
-
Resolution: Unresolved
-
Trivial
-
None
We can't use System.lineSeparator() reliably as it returns the master node's line separator. Adding a lineSeparator() step is useful for writing files on various agents.
[JENKINS-55089] Add a lineSeparator step
Issue Type | Original: Bug [ 1 ] | New: Improvement [ 4 ] |
Component/s | New: pipeline-utility-steps-plugin [ 21135 ] | |
Component/s | Original: script-security-plugin [ 18520 ] |
Summary | Original: Scripts not permitted to use staticMethod java.lang.System lineSeparator | New: Add a lineSeparator step |
Description | Original: Please include System.lineSeparator() in the default signature whitelist, thanks :) |
New:
We can't use System.lineSeparator() reliably as it returns the master node's line separator Please include System.lineSeparator() in the default signature whitelist, thanks :) |
Assignee | Original: Andrew Bayer [ abayer ] | New: rsandell [ rsandell ] |
Description |
Original:
We can't use System.lineSeparator() reliably as it returns the master node's line separator Please include System.lineSeparator() in the default signature whitelist, thanks :) |
New: We can't use System.lineSeparator() reliably as it returns the master node's line separator. Adding a lineSeparator() step is useful for writing files on various agents. |
towel it may be safe to add it, but it will unlikely get you the result you expect in Jenkins Pipeline. In Pipeline scripts will always return the master's system separator. Maybe it's better to propose a new step in Pipeline Utility steps