windows搭建jenkins+allure+pytest遇到问题记录

时间:2021-06-12 01:23:49   收藏:0   阅读:27

1.

window环境构建选择Execute Windows batch command

 

2.指定python路径

Jenkins首页-->构建执行状态

技术分享图片

 

技术分享图片

 

 

3 报错:

No module named ‘pytest‘ 

卸载pip uninstall pytest

cmd 命令切换到python的scripts的目录下

重新安装pipip install pytest

 

4,再次构建会遇到其他的no module named ,同样在上个目录下继续安装

pip install allure-pytest

 

主要原因是在IDE运行时,会搜索所有相关的模块,而通过cmd命令或者Jenkins构建时,只会搜索当前目录下的模块

 

 

原文:https://www.cnblogs.com/cuiyangT/p/14876107.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!