OK
謝謝,我想通了,如何顯示合格,並通過添加VAR方法失敗=通過或VAR =失敗的分配的令牌。
首先去果凍腳本在此路徑:
〜/ .hudson /插件/ emailext/WEB-INF /班/哈德森/插件/ emailext /模板/ automation.jelly
$ DEFAULT_SUBJECT($ {build.testResultAction?.failCount} $ {build.testResultAction?.failureDiffString})
建立CONFIG IN JENKINS
DEFAULT SUBJECT:
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!
DEFAULT CONTENT:
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
檢查$ BUILD_URL的控制檯輸出以查看結果。
Changes:
${CHANGES}
Changes Since Last Success
${CHANGES_SINCE_LAST_SUCCESS}
Failed Tests:
${FAILED_TESTS}
Build Log:
${BUILD_LOG}
Total Amount of Tests:
${TEST_COUNTS, var}
Total = $TEST_COUNTS
Failed = ${TEST_COUNTS,var="fail"}
Total = $TEST_COUNTS
Passed = ${TEST_COUNTS,var="pass"}
Job Description:
${JOB_DESCRIPTION}
將這個電子郵件中的工作 $ {JELLY_SCRIPT,模板=「HTML與 - 健康和控制檯」} 注意可用的模板路徑~/.hudson/plugins/email-ext/WEB-INF/classes/hudson/plugins/emailext/templates/automation.jelly
被注意到或者創建自己的。
什麼添加鏈接到測試的結果:HTTP://我的主機/詹金斯/工作/我的測試,建立/ 1/testReport? – 2013-02-17 07:53:03