jenkins 构建 allure

1.安装 allure 插件

系统管理 =》 插件管理 =》 可选插件,搜索 allure 安装

 

2.全局工具配置

 

3.新建自由风格任务

  1) 构建 执行shell

  

cd /home/jmp/autotest-interface/
python3 -m pytest test_cases --alluredir ${WORKSPACE}/allure-results

 

  

  

  2) 构建后操作

  

 

4.查看结果

 

posted @ 2019-08-14 15:52  黒貓  阅读(449)  评论(0编辑  收藏  举报