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

sh option returnStdout returns both Stdout and Stderr

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • Jenkins 2.60.1 running on Centos06

      Steps to recreate:
      In a groovy script contained in the vars folder of a shared lib, call sh(returnStdout: true, "Someshellscript.sh")
      If you read the returned string as a hexdump, you'll find all of the stderr and stdout of Someshellscript.sh contianed in the string

            Unassigned Unassigned
            rtice Ronald Tice
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: