Skip to content

Using JenkinsProgressiveTextReader

Joshua Miller edited this page Mar 3, 2018 · 1 revision

A utility class created to simplify the reading of Console Output from a running Jenkins Build.

var client = new JenkinsClient() {...};

var textReader = new ProgressiveTextReader(client, '<Job Name>', BuildNumber.LastSuccessful);
textReader.TextChanged += (newText) => Console.Write(newText);

while (!textReader.IsComplete) textReader.Update();