Getting job log file

9 views
Skip to first unread message

selva vignesh

unread,
Dec 5, 2019, 5:15:09 AM12/5/19
to Jenkins Developers
Hi Team,
Is it possible to take build log file as plain text file instead of html file.
I need this approach in my plugin.
Kindly assist. if examples would be great

Ullrich Hafner

unread,
Dec 5, 2019, 5:19:51 AM12/5/19
to Jenkins Developers
On a Run instance you can obtain the log using the one of the getLog* methods

Example (that also strips timestamps and console notes):
https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/core/util/ConsoleLogReaderFactory.java


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/cfae061e-f18d-49be-a8a7-618081f386d4%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages