jenkins + robotframework mailing report templates

1.Jenkins configure system mail
system management - System Settings, E-mail the Notification Configuration Extended

2.jenkins create a new project, the project is successfully created, configure the mail

$ PROJECT_NAME - $ BUILD_NUMBER building # -! $ BUILD_STATUS
 <! DOCTYPE HTML>
    < HTML>
    <head>
    <Meta charset = "UTF-. 8">.
    <title> $ {ENV, var = "JOB_NAME"} - of $ {BUILD_NUMBER} views build log </ title>
    </ head>

    <body leftmargin = ". 8" MARGINWIDTH = "0" topmargin = ". 8" MARGINHEIGHT = ". 4"
        ffset = "0">
        <Table width = "100%" cellpadding = "0" cellspacing = "0"
            style = "font-size: 30px ; font-Family: the Tahoma, Arial, Helvetica, Sans-serif ">
            <TR>
                <td><br />
                <b><font color="#0B610B" size="4">构建信息</font></b>
               <HR style = "height: 1px; border: none; border-Top: 2px Dashed # CDBA96;" />
                </ TD>
            </ TR>
            <TR>
                <TD>
                    <UL>
                       
                        <Li> Project Title: $ { } the PROJECT_NAME </ Li>
                        <Li> Construction ID: $ {BUILD_NUMBER} views of Construction </ Li>
                        <Li> Construction time: $ {SCRIPT, Template = "buildtime.groovy"} </ Li>
                        <Li> the URL the Git : $ {GIT_URL} </ Li>
                        <Li> the Git branch: $ {GIT_BRANCH} </ Li>
                        <Li> trigger reasons: the CAUSE $ {} </ Li>
                        <Li> build log: <a href = "$ {BUILD_URL} console"> Click build log </a> </ li>
                        <li> build Url: <a href="${BUILD_URL}"> Click to view build pages </a> </ li>
                        <li> Project Url: <a href="${PROJECT_URL}"> Click here to build the project page </a> </ Li>
                        <B> <font Color = "# FF0000" size = ". 4"> <Li> report: <a href = "$ { BUILD_URL} robot / report / report.html # suites? s1 "> click for execution details </a> </ li> </ font > </ b> with Example
                       <li>  test statistics: $ {SCRIPT, Template =" robot_results.groovy "} </ Li>
                    </ UL>
                </ TD>
            </ TR>
            <TR>
                <TD> <B> <font Color = "#0B610B" size="4">变更集</font></b>
                <hr style="height:1px;border:none;border-top:2px dashed #CDBA96;" />
               </td>
            </tr>

            <tr>
                <td>${JELLY_SCRIPT,template="html"}<br/>
                <hr size="2" width="100%" align="center" /></td>
            </tr>


        </table>
    </body>
    </html>

 

 

From: http://www.51testing.com/html/18/310118-3720699.html

Guess you like

Origin www.cnblogs.com/brianlai/p/11805243.html