![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jenkins
兮风夜月
这个作者很懒,什么都没留下…
展开
-
pytest在jenkins中获取${TEST_COUNTS}值为空问题
1.网上查询的解决办法大部分都是java语言的框架,执行结束会生成xml文件pytest解决方法,需要在 pytest.main()添加参数:–junitxml=report/results.xmlpytest.main(["-sq","--alluredir", reportDir+"/tmp",'--clean-alluredir',f'--junitxml={reportDir+"/results.xml"}'])在构建后操作中选择Publish Junit test result repo原创 2021-07-12 09:20:48 · 803 阅读 · 3 评论 -
激活虚拟环境报错sh: permission denied: ./venv/bin/activate
linux激活虚拟环境直接运行 ./venv/bin/activate报错:sh: permission denied: ./venv/bin/activate解决方式:source ./venv/bin/activate原创 2021-07-05 16:17:33 · 2650 阅读 · 0 评论 -
jenkins 在linux环境 构建运行命令遇到的一些问题
1.创建虚拟环境* python -m venv venv*遇到的问题*解决方式*python3 --version 查看python版本*apt-get -y install python3.7-venv 根据python版本安装,我这个是3.7 ,-y指确认安装2.激活虚拟环境*source venv/bin/activate*遇到的问题*解决方式*#!/bin/bash 在构建运行shell命令顶部增加这行注释3 .安装依赖*pip install -r requireme原创 2021-07-06 15:19:57 · 236 阅读 · 0 评论