Display HTML page inside mail body with Email-ext plugin in Jenkins

后端 未结 6 2207
情书的邮戳
情书的邮戳 2020-11-30 00:58

I am new to Jenkins and I want to know how it is possible to display the HTML report (not the HTML code) generated after a successful build inside a mail body (not as an att

6条回答
  •  情歌与酒
    2020-11-30 02:05

    Look deeper into the plugin documentations. No need for groovy here.

    Just make sure Content Type is set to HTML and add the following to the body:

    ${FILE,path="my.html"}
    

    This will place the my.html content in your email body (location of file is relative to job's workspace. I use it and it works well.

    I hope this helps.

    EDIT: Note that you must have the Jenkins version 1.532.1 (or higher) to support this feature with the email-ext plugin.

提交回复
热议问题