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

Workflow steps should expose console output to script somehow

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None
    • Jenkins 1.6.11
      Workflow 1.6

      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.

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

              Created:
              Updated:
              Resolved: