How to send entire console logs/ output or specific stage output to email or save it to file

11 views
Skip to first unread message

sagar....@gslab.com

unread,
Feb 21, 2019, 11:11:20 PM2/21/19
to Jenkins Users
Hi guys,

I am trying to save logs of each build to file or send it through email, I found a way to send email as in post build action, but it is just sending an url for Jenkins build console.
If someone knows how can I achieve this, please help.

Thank you !

Slide

unread,
Feb 21, 2019, 11:25:32 PM2/21/19
to Jenkins User Mailing List
The email-ext plugin supports attaching the build log. https://wiki.jenkins.io/display/JENKINS/Email-ext+plugin

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/95eed1d7-2b76-4362-9b4e-9b505be62c3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

sagar....@gslab.com

unread,
Feb 21, 2019, 11:30:48 PM2/21/19
to Jenkins Users
Thank you. 
I did it using this. 

emailext (attachLog: true, body: '', subject: 'Sending build logs',to: 'exa...@gmail.com')

RAJENDRA PRASAD

unread,
Feb 21, 2019, 11:43:21 PM2/21/19
to jenkins...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages