• jenkins发送html测试报告


    jenkins发送html测试报告  https://blog.csdn.net/galen2016/article/details/77975965/

    <!DOCTYPE html>  
    <html>  
    <head>  
    <meta charset="UTF-8">  
    <title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>  
    <style type="text/css">
            body
            {
                margin: 10px 20px;
                font-size: 14px;
                font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
            }
            /*table*/
            /*{*/
                /*border-collapse: collapse;*/
                /*text-align: center;*/
                /*font-size: 14px;*/
            /*}*/
            /*table td, table th*/
            /*{*/
                /*border: 2px solid #cc6f4a;*/
                /*color: #666;*/
                /*height: 20px;*/
                /*text-align: center;*/
                /*padding: 3px 3px;*/
            /*}*/
            /*table thead th*/
            /*{*/
                /*background-color: #CCE8EB;*/
                /* 100px;*/
            /*}*/
            /*table tr:nth-child(odd)*/
            /*{*/
                /*background: #fff;*/
            /*}*/
            /*table tr:nth-child(even)*/
            /*{*/
                /*background: #c9dafa;*/
            /*}*/
            .successBtn {
                width: 60px;
                padding:3px;
                background-color: #58ab48;
                border-color: #58ab48;
                color: #fff;
                -moz-border-radius: 10px;
                -webkit-border-radius: 10px;
                border-radius: 10px; /* future proofing */
                -khtml-border-radius: 10px; /* for old Konqueror browsers */
                text-align: center;
                vertical-align: middle;
                border: 1px solid transparent;
                font-weight: 500;
                /*font-size:125%*/
            }
            .failBtn{
                width: 60px;
                padding:3px;
                background-color: #ab2e2d;
                border-color: #ab2e2d;
                color: #fff;
                -moz-border-radius: 10px;
                -webkit-border-radius: 10px;
                border-radius: 10px; /* future proofing */
                -khtml-border-radius: 10px; /* for old Konqueror browsers */
                text-align: center;
                vertical-align: middle;
                border: 1px solid transparent;
                font-weight: 500;
                /*font-size:125%*/
            }
        </style>
    
        <style>
            /* Border styles */
            .tabNoBorder thead, .tabNoBorder tr {
                border-top-width: 1px;
                border-top-style: solid;
                border-top-color: rgb(211, 202, 221);
            }
            .tabNoBorder {
                border-bottom-width: 1px;
                border-bottom-style: solid;
                border-bottom-color: rgb(211, 202, 221);
            }
    
            /* Padding and font style */
            .tabNoBorder td, .tabNoBorder th {
                padding: 5px 10px;
                font-size: 14px;
                font-family: Verdana;
                color: rgb(95, 74, 121);
            }
    
            /* Alternating background colors */
            .tabNoBorder tr:nth-child(even) {
                background: rgb(223, 216, 232)
            }
            .tabNoBorder tr:nth-child(odd) {
                background: #FFF
            }
        </style>
    </head>  
    
    <body>  
        <div>
        <table class = "tabNoBorder"> 
    
            <tr>
                <th align="center"><br />
                    <h2>构建信息</h2> 
                </th>
            </tr>
            <tr>  
                <td>  
                    <ul>  
                        <li>项目名称 : ${PROJECT_NAME}</li>
                        <li>触发原因: ${CAUSE}</li>               
                        <li>项目  Url : <a href="${PROJECT_URL}">${PROJECT_URL}</a></li>
                    </ul>  
                </td> 
                <!--<td>${JELLY_SCRIPT,template="html"}<br/>--> 
            </tr>
    
        </table> 
        </div>
    <div style="width=80%">
    <h2>测试报告</h2>
    <div >${FILE ,path="/apps/data/*****/workspace/*****/target/report.html"}</div>
    </div>
    
      </body>  
    </html>
  • 相关阅读:
    创建zabbix监控,添加监控机(server、agent、windows)
    KVM虚拟化平台简介及环境部署
    利用nginx的stream模块实现内网端口的转发代理
    Mysql主主同步+keepalived实现高可用
    基于 MHA 的 MySQL 高可用方案
    mysql基于Amoeba(变形虫)实现读写分离
    mysql主从异步复制
    基于mysqld_multi实现MySQL多实例多进程配置
    基于Haproxy+Keepalived构建高可用负载均衡集群
    yum 安装报错The GPG keys listed for the "CentOS-7
  • 原文地址:https://www.cnblogs.com/zipon/p/9645146.html
Copyright © 2020-2023  润新知