[Jenkins] 执行SoapUI的task,设置邮件内容为HTML+CSS

设置邮件内容:Default Content

<span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Project : </span>
<span style="font-family:verdana;font-size:16px;color:black;">PA_Regression_Accuracy_Static</span> <BR> <BR>
<span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Build Status : </span>
<span style="font-family:verdana;font-size:16px;color:red;">${BUILD_STATUS}</span> <BR> <BR>

<span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Automation Tool : </span>
<span style="font-family:verdana;font-size:16px;color:black;">SoapUI</span> <BR> <BR>

<span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">TP vs Live Test Results : </span>
<span style="font-family:verdana;font-size:16px;color:black;"><a href=http://szotwin2k801/PA/>TP vs Live Test Results</a></span> <BR> <BR>

<span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Links in SoapUI Test Results : </span>
<span style="font-family:verdana;font-size:16px;color:black;"><a href=https://jenkins.morningstar.com/job/DO/view/DO%20Automation/job/Automation_SoapUI_PA_Regression_Accuracy_Static/ws/result-output//overview-summary.html>SoapUI Test Results</a></span> <BR> <BR>

<HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 />
${FILE,path="result-output/overview-summary.html"}

<HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 />
${FILE,path="result-output/alltests-fails.html"}

设置邮件格式:Content Type 为 HTML(text/html)

将CSS作为附件 : Attachments 为 result-output/*.css

转载于:https://www.cnblogs.com/MasterMonkInTemple/p/4682177.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值