Skip to content

Reading Console Output

Joshua Miller edited this page Mar 3, 2018 · 2 revisions

There are multiple options for retrieving Console Output from a Jenkins Build.

  • JenkinsClient.Builds.GetConsoleOutput() should be used when retrieving the final output from a completed Build.

  • JenkinsClient.Builds.GetProgressiveText() should be used when you want to read the unformatted text output from the Job while it is running. This method accepts a start argument to allow continuous reading.

  • JenkinsClient.Builds.GetProgressiveHtml() should be used when you want to read the HTML-formatted output from the Job while it is running. This method accepts a start argument to allow continuous reading.


Two utility classes have also been created to simplify the process of reading progressive output, JenkinsProgressiveTextReader and JenkinsProgressiveHtmlReader.