Started by user isTester
Building remotely on isTester_Slave in workspace /root/jenkins/workspace/ajt_test/Test_web
[Pre_cjds_web] $ /bin/sh -xe /tmp/jenkins1044899056570118761.sh
+ git --version
/tmp/jenkins1044899056570118761.sh: line 2: git: command not found
Build step 'Execute shell' marked build as failure
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE
如上,
服务器 ,已经安装了Git ,也配置了环境变量 。
为何Jenkins读不到 ?
1. 在服务器,输出 echo $PATH
2. 得到path路径后,在Jenkins「系统设置」中,配置全局属性,加上
搞定 。
服务器已安装Git并配置环境变量,但Jenkins读不到。解决方法是在服务器输出echo $PATH获取path路径,然后在Jenkins「系统设置」中配置全局属性并添加该路径,问题即可解决。
1025

被折叠的 条评论
为什么被折叠?



