执行代码:
python3 -m venv tutorial-env
source tutorial-env/bin/activate
# pip install -r requirements.txt
echo "测试用例开始执行"
pwd
python3 -m pytest /testcases/test_calendar.py
报错:
[feishuProject] $ /bin/bash /tmp/jenkins5930788648875732804.sh
测试用例开始执行
/home/jenkins/slave/workspace/feishuProject
/home/jenkins/slave/workspace/feishuProject/tutorial-env/bin/python: No module named pytest
Build step 'Execute shell' marked build as failure
Finished: FAILURE
1.环境在linux宿主机上,使用slave节点运行的,怎么确认slave节点调用了宿主机环境?
2.Jenkins工作空间内创建tutorial-env,“No module named pytest”此处是调用的slave环境吗,需要怎么调用?