1. Set up a mailbox to receive the test report
Management >> System Settings >> System Configuration Extended E-mail Notification
That is the body of the message header codes:
mail title:
Automation project: $ PROJECT_NAME - build results: $ BUILD_STATUS
Message Body:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title> </head> <body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4" offset="0"> <table width="95%" cellpadding="0" cellspacing="0" style= "font-size: 11pt; font-Family: the Tahoma, Arial, Helvetica, Sans-serif" > < TR > This message is issued by the system automatically, without reply! < Br /> all the leaders and colleagues, Hello everyone, Here is the $ {PROJECT_NAME} project build information </ br > < td > < font Color = "# CC0000" > build results - $ {BUILD_STATUS} </ font > < / TD > </ TR > < TR > < TD > < br /> < B > <Construction Information </ font > </ B > < HR size = "2" width = "100%" align = left = "Center" /> </ TD > </ TR > < TR > < TD > < UL > < Li > project name: $ {PROJECT_NAME} </ li > < li > build number: the first time to build $ {BUILD_NUMBER} </ li > < li > trigger reasons: the CAUSE} $ { </ > < > Construction Status: $ {BUILD_STATUS} </ Li > < Li > Construction log: < A the href = "$ {BUILD_URL} Console" > $ {BUILD_URL} Console </ A > </ Li > < Li > Construction of the Url: < A the href = "$ {} BUILD_URL" > $ {BUILD_URL} </ A > </ Li > < Li > working directory: < A the href = "$ {} PROJECT_URL WS" > $ {} PROJECT_URL WS </a></li> <li>项目 Url : <a href="${PROJECT_URL}">${PROJECT_URL}</a></li> </ul> <h4><font color="#0B610B">失败用例</font></h4> <hr size="2" width="100%" /> $FAILED_TESTS<br/> <h4><font color="#0B610B">最近提交(#$SVN_REVISION)</font></h4> <hr size="2" width="100%" /> <ul> ${CHANGES_SINCE_LAST_SUCCESS, reverse=true, format="%c", changesFormat="<li>%d [%a] %m</li>"} </ul> 详细提交: <a href="${PROJECT_URL}changes">${PROJECT_URL}changes</a><br/> </td> </tr> </table> </body> </html>
Here we enter the mailbox password is not our mail login password, but authorization code, here's qq-mail it to qq-mail as an example:
First into the mailbox, click the "Settings - Account" to jump to that page, you can open the mailbox service and obtain the authorization code to use
2. Monitoring Configuration Management
System Management >> System Settings >> Monitoring Configuration Management