Using the email-ext to send the cppcheck report

51 views
Skip to first unread message

Chia-Che Ho

unread,
Jan 17, 2017, 4:32:57 AM1/17/17
to Jenkins Users
I'm trying to send cppcheck report on an email using email-ext plugin from a Jenkins build.
Could anyone provide the method?!
Thank you!!!

Rachel Moreno

unread,
Jan 19, 2017, 1:05:14 PM1/19/17
to Jenkins Users
Hi Chia-Che,

You could guess the location of cppcheck.xml in your workspace and then:

  • Post-build action > Editable Email Notification
  • Complete typical email data: recipients, subject, content
  • Fill in Attachments field (base directory is the workspace). E.g.
    • if cppcheck.xml is in the root of the workspace: cppcheck.xml
    • if cppcheck.xml is in the directory MyDirectory of the workspace: MyDirectory/cppcheck.xml


I hope be useful.


Best regards,

Rachel

Slide

unread,
Jan 19, 2017, 1:26:32 PM1/19/17
to Jenkins Users

The attachments field uses an ant file pattern, so you could do something like **/cppcheck.xml and it will find it in the workspace.


--
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/9d5c7e56-4b5a-4b4e-8af5-9ec05537f9bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rachel Moreno

unread,
Jan 19, 2017, 1:39:38 PM1/19/17
to Jenkins Users
Yes, you're right! Thank you for improving my answer. Easier and smart in that way ;)

Best regards and thank you very much again,
Rachel
Reply all
Reply to author
Forward
0 new messages