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

Workflow steps should expose console output to script somehow

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Duplicate
    • pipeline
    • None
    • Jenkins 1.6.11
      Workflow 1.6

    Description

      Workflow steps should make their console (standard) output available to Groovy script. Standard error might also be handy. This would be especially useful for the sh and bat steps, which currently only expose the return value.

      Currently, if one wants to retrieve information from say an external command-line utility, the output must be piped to a file and read back in using readFile. This is both inefficient and cumbersome, as well as hides the output of the command from the console unless specifically using a utility like tee.

      Attachments

        Issue Links

          Activity

            sumdumgai A C created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-26133 [ JENKINS-26133 ]
            jglick Jesse Glick made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163137 ] JNJira + In-Review [ 197111 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]

            People

              jglick Jesse Glick
              sumdumgai A C
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: