持续集成 jenkins 构建后执行 windows batch command,进入 python 虚拟环境时,报错,dos 下可以

冷月醉夕阳 · November 01, 2018 · Last by 春风亭老胡 replied at February 04, 2021 · 1872 hits

Jenkins 上面配置如下:

报错:
virtualenv "env_test" does not exist.
Create it with "mkvirtualenv "
python: can't open file 'start.py': [Errno 2] No such file or directory
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE

大家有没有碰到这种问题, 也不知道是不是哪里需要配置环境变量还是??

共收到 2 条回复 时间 点赞

我也碰到这个问题了

2Floor has deleted

切换虚拟环境之后需要用&&连接,不然会另起一个窗口

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up