-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Trivial
-
Component/s: durable-task-plugin
-
Environment:Jenkins ver. 2.164.1
Durable Task Plugin 1.29
When i trying to wrap some powershell script output into variable, it's adds excess \n symbol to.
Like:
script {
VARI = powershell (returnStdout: true, script: """Write-Output foo""")
println VARI
}
It's outputs the following:
[Pipeline] script
[Pipeline] {
[Pipeline] powershell
[Pipeline] echo
foo
[Pipeline] }
[Pipeline] // script
[Pipeline] }
But powershell itself transmits output without `n .
How to escape it in output?