Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56925

extra newline character from powershell output

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          gek gek created issue -
          gek gek made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Trivial [ 5 ]

            People

            Assignee:
            gek gek
            Reporter:
            gek gek
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: