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

Workflow steps should expose console output to script somehow

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      Jenkins 1.6.11
      Workflow 1.6
    • Similar Issues:

      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

            There are no comments yet on this issue.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: