Ext email plugin to send HTML Junit reports by mail

I used this below code in default content to generate textual Junit test reports. $ {JELLY_SCRIPT, template = "text"} But now I wanted the same in HTML format. I changed content type to HTML and put below code in default content - $ {FILE, path = "index.html"} But I get html code in my email. Where did I miss? Any suggestions..

+3


source to share


3 answers


If you see HTML code in your email, you may need to set the email content type to HTML (text / html).



You can change the default Content Type to HTML (text / html) in Jenkins System Configuration under Extended E-mail Notification

. Alternatively, you can change the content type in the job configuration.

0


source


If you are using the ext email plugin and then go to your workspace "emailable-report.html" should be generated. So set the correct path in the default content like this:



${FILE,path="path/to/your/emailable-report.html"}

      

0


source


Instead of index.html, the specified path for those HTML files that are generated as all-tests.html. It worked fine. There may be a problem with frames.

0


source







All Articles