step 1:Python环境安装allure-adaptor
python3 -m pip install pytest-allure-adaptor
step 2:jenkins中安装allure插件
在插件管理中搜索allure
step 3:重启jenkins(我的jenkins安装在Tomcat中,所以重启Tomcat就行了)
重启Tomcat:
1、进入tomcat的bin目录
cd /opt/app/tomcat/bin/
2、 关闭Tomcat服务:./shutdown.sh
3、启动Tomcat服务:./startup.sh
4、查看Tomcat是否启动:ps -ef |grep "tomcat"
启动成功后,就可以在构建的时候使用allure啦