allure集成Jenkins生成的报告为空
Whisper Lv4

参考:https://github.com/jenkinsci/allure-plugin/issues/201#issuecomment-499879705

1
2
3
4
5
6
7
Here is the solution:  
Inside your work space (For me it is D:\m\Automation Project\Tests), Create a folder named "target" containing two subfolders "allure-results" and "allure-reports".
2. In Post Build Actions of Jenkins Project provide these entries.
Results: target/allure-results
Report Path: target/allure-reports

Now run your tests and allure reports will be generated without any issues.

就是说必须要在项目下建target目录,target目录下建allure-results和allure-reports文件夹,名字也必须是这个,然后在jenkins中配置这两个目录。

项目

配置工作空间

生成的json和最终报告

cmd执行:

1
G:\pythonPros\pDemo\PIPENV_VENV_IN_PROJECT\pDemo-5vB6xhg8\Scripts\pytest --alluredir target/allure-results