Pybot在Jenkins Shell执行中没有被“哪个”命令看到

时间:2018-08-30 09:54:18

标签: jenkins debian robotframework

由匿名用户启动

Building on master in workspace /var/lib/jenkins/workspace/Run script
[Run script] $ /bin/bash -xe /tmp/jenkins2969604061590363450.sh
+ which java
/usr/bin/java
+ which pybot
Build step 'Execute shell' marked build as failure
Finished: FAILURE

问题是詹金斯无法识别pybot的路径,在命令行中,相同的命令可以正常工作:

user@test-vm:/home$ which pybot
/opt/test-vm/python/bin/pybot

问题出在哪里?我应该将它添加到PATH的某个位置吗?

谢谢。

1 个答案:

答案 0 :(得分:0)

似乎我必须更换Jenkins用户-这个问题的答案很有帮助:

Run shell command in jenkins as root user?