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


> Am 05.12.2019 um 11:15 schrieb selva vignesh <[email protected]>:
> 
> 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
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/cfae061e-f18d-49be-a8a7-618081f386d4%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/cfae061e-f18d-49be-a8a7-618081f386d4%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/960F7C11-5F6C-4A76-B5D0-6F25B9DFD1BF%40gmail.com.

Reply via email to