环境:Jenkins 安装在 Docker 中,我已经在那台主机上安装了 Python3 的环境了
Jenkins 配置如下:
构建环境:
SSH site: root@x.x.x.x:22
Pre build script:
docker exec -it jenkins bash
cd /var/jenkins_home/workspace/PyCITest
py.test test_DeviceReboot.py --resultlog=./log.txt
构建报错:
[SSH] executing pre build script:
docker exec -it jenkins bash
cd /var/jenkins_home/workspace/PyCITest
py.test test_DeviceReboot.py --resultlog=./log.txt
the input device is not a TTY
bash: line 2: cd: /var/jenkins_home/workspace/PyCITest: No such file or directory
ERROR: file not found: test_DeviceReboot.py
有亲可以提供一下方向吗