[03/21/16 16:09:39] [SSH] Opening SSH connection to 172.18.73.53:22. [03/21/16 16:09:40] [SSH] Authentication successful. [03/21/16 16:09:40] [SSH] The remote users environment is: [03/21/16 16:09:40] [SSH] Checking java version of java Couldn't figure out the Java version of java [03/21/16 16:09:41] [SSH] Checking java version of /usr/bin/java Couldn't figure out the Java version of /usr/bin/java [03/21/16 16:09:41] [SSH] Checking java version of /usr/java/default/bin/java Couldn't figure out the Java version of /usr/java/default/bin/java
我得到了启动奴隶上述错误
它试图首先执行“/ usr / bin / java -version”,然后是“/ usr / java / default / bin / java -version”,但是这两个命令似乎都失败了。 这可能是由从站上错误的工具位置引起的。 你应该首先弄清楚你的slave的java可执行文件的位置:
which java
然后,在Jenkins的从属配置下,启用“Tool Locations”复选框并在其中添加正确的Java路径并保存。