环境准备
- 运行节点设备需要安装 allure report 运行环境
- Jenkins 需要安装 allure report 插件
- python 依赖:
pip install allure-pytest
Jenkins 项目配置
- 构建执行命令
- 添加构建后动作
配置后的样式
报告样式
Allure Report 打包发送至邮箱
前提条件:
- 需要添加邮件插件
通过 ssh 命令打包压缩文件
添加邮件发送配置
将打包生成的压缩文件路径配置到 Attachments 中
解压后,在报告文件夹路径下,使用 python 搭建简易服务器查看报告
python -m http.server 8001
# 浏览器进入 localhost:8001 查看报告
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。