jenkins发送邮件功能二——mail_content.html

<!DOCTYPE html>
<html lang="en">
<head>
    <h1 id="top" style="color: #880000; text-align: center; font-size: 40px">$project_name项目持续集成质量报告</h1>
    <meta charset="UTF-8">
    <title>$project_name项目持续集成质量报告</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable= no,target-densitydpi =medium-dpi">

    <style>
        table{border:3px solid #1405b2
        }
        tr td{height: 50px;line-height: 40px;border: 1px solid #BACEE1;border-top: 0;border-right: 0}
        tr.tit td{border-bottom: 0;border-top: 3px solid #000}
        tr.tit td.emLine{border-top: 0}
        /*td span{display: block}*/
        .firstC,.secC,.thirdC{}
        .firstC{background: rgb(186, 206, 225)
        }
        .secC{background: rgb(186, 206, 225)
        }
        .thirdC{background: rgb(186, 206, 225)
        }
        .forthC{background: rgb(186, 206, 225)
        }
        .info,td b{font-weight: bold}
    </style>
</head>

<body>

    <!--<div style="width:10%; min-height:300px; float:left; background-color: #eeeeee; margin: 0px 20px 0px 10px;">-->
        <!--<ul width="100%" height="100%">-->
            <!--<li><a href="#$subproject_name1">$subproject_name1</a></li>-->
            <!--<li><a href="#$subproject_name2">$subproject_name2</a></li>-->
            <!--<li><a href="#$subproject_name3">$subproject_name3</a></li>-->
        <!--</ul>-->
    <!--</div>-->

    <div style="width:100%">
        <table id="$subproject_name1" border="5" width="100%" cellpadding="0" cellspacing="0" bgcolor="#f0f8ff">
            <tr align="left">
                <td colspan="5" bgcolor="#BACEE1" style="font-size: 25px; color: #1b1ad5">
                    <b>$subproject_name工程总览</b>
                    <a href="#top" style="float:right">返回顶部</a>
                </td>
            </tr>
            <tr align="left" class="tit">
                <td class="firstC" style="font-size: 20px;color: #05077d"><b>[编译,打包,部署]</b></td>
                <td class="firstC" style="font-size: 20px;color: #05077d"><b>[版本检查]</b></td>
                <td class="firstC" style="font-size: 20px;color: #05077d"><b>[自动化测试]</b></td>
                <td class="firstC" style="font-size: 20px;color: #05077d"><b>[代码覆盖率]</b></td>

            </tr>
            <tr align="left" class="tit">
                <td class="firstC emLine" style="border-bottom: 3px solid #000;">构建时间:$build_date</td>
                <td class="firstC emLine" style="border-bottom: 3px solid #000;">SONAR扫描耗时:$sonar_time</td>
                <td class="firstC emLine" style="border-bottom: 3px solid #000;">全量单元测试耗时:$ut_time<br>自动化测试耗时:$at_time</td>
                <td class="firstC emLine" style="border-bottom: 3px solid #000;">全量自动化+单元测试覆盖率: $ust_line<br>全量代码行覆盖率: $total_line</td>
               

            </tr>

            <tr align="left">
                <td colspan="5" class="info" style="border-bottom: 3px solid #000; font-size: 20px; color: #05077d">[摘要信息]</td>
            </tr>

            <tr align="left">
                <td>SONAR扫描概况:</td>
                <td colspan="5"><span>$sonar_report</span><br><span> SONAR统计:<a href="$sonar_url" target="_blank">详细信息</a></span> </td>

            </tr>

            <tr align="left">
                <td>全量单元测试:</td>
                <td colspan="5"><span>$ut_coco_summary</span><br><span>详细见:<a href="$ut_coco_detail" target="_blank">详细信息</a></span></td>

            </tr>

            <tr align="left">
                <td>全量自动化:</td>
                <td colspan="5"><span>$at_coco_summary</span><br><span>详细见:<a href="$at_coco_detail" target="_blank">详细信息</a></span></td>

            </tr>

                <tr align="left">
                <td>全量自动化+单元+手动测试:</td>
                <td colspan="5"><span>$total_coco_summary</span><br><span>详细见:<a href="$total_coco_detail" target="_blank">详细信息</a></span></td>

            </tr>


            <tr align="left">
                <td>全量自动化+单元测试:</td>
                <td colspan="5"><span>$ust_coco_summary</span><br><span>详细见:<a href="$ust_coco_detail" target="_blank">详细信息</a></span></td>

            </tr>
            <tr align="left">
                <td>手动自动化:</td>
                <td colspan="5"><span>$mt_coco_summary</span><br><span>详细见:<a href="$mt_coco_detail" target="_blank">详细信息</a></span></td>

            </tr>

            <tr align="left">
                <td>增量单元测试:</td>
                <td colspan="5"><span>$ut_incoco_summary</span><br><span> 详细见:<a href="$ut_incoco_detail" target="_blank">详细信息</a></span></td>

            </tr>

                <tr align="left">
                <td>增量自动化+单元+手动测试:</td>
                <td colspan="5"><span>$total_incoco_summary</span><br><span>详细见:<a href="$total_incoco_detail" target="_blank">详细信息</a></span></td>

            </tr>


            


        </table>

        

        <a href="#top" style="float:right">返回顶部</a>
    </div>

</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值