jenkins持續集成Allure生成報表+郵件推送


本次基於《jenkins 生成HTML報表,郵件推送》的基礎上將生成HTML報表修改為Allure生成報表,可以參考官方文檔:https://docs.qameta.io/allure/#_jenkins

1.啟動tomcat登錄jenkins

2.Install the latest version of Allure Plugin from "Plugin Manager" page.

3.(1)Open Plugin Advanced Settings (at <your_jenkins_host>/pluginManager/advanced).

 (2) Click "Check Updates" button on the bottom right corner of the page.

 

      

4.Configure Allure Commandline from "Global Tools Configuration".全局配置

 

   Fill the name and choose the version in the "From Maven Central" dropdown.

4.配置任務

(1) Open job configuration page.

(2) Ensure that your build generates some data in one of the formats digestible for Allure Commandline tool.

(3) Add Allure Report post build action.

5.Configure the Allure Report.

6.配置郵件下發內容,僅供參考

項目名稱:$PROJECT_NAME</br>
構建編號:$BUILD_NUMBER</br>
svn版本號:${SVN_REVISION}</br>
構建狀態:$BUILD_STATUS</br>
觸發原因:${CAUSE}</br>
測試報告:${JOB_URL}allure/</br>
構建日志地址:${BUILD_URL}console</br>
構建地址:$BUILD_URL</br>
構建報告:${BUILD_URL}testReport</br>

7.點擊立即構建后查看控制台輸出(郵件配置請參考上一篇文章:https://www.cnblogs.com/xiaozhaoboke/p/11017600.html)

   .............................................

8.郵件展示

9.訪問報表展示

10. report報表相比之前的HTML報表是不是更漂亮了呢!

不足之處,請大神指出,后續修正!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM