gpt4 book ai didi

linux - Jenkins 奴隶无法弄清楚java版本

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:46:50 24 4
gpt4 key购买 nike

[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

启动slave时出现上述错误

最佳答案

它试图首先执行“/usr/bin/java -version”,然后是“/usr/java/default/bin/java -version”,但这两个命令似乎都失败了。这可能是由于从站上的工具位置错误造成的。你应该首先找出你的奴隶上的java可执行位置:

which java

然后,在 Jenkins 的从属配置下,启用“工具位置”复选框并在那里添加正确的 Java 路径并保存。

关于linux - Jenkins 奴隶无法弄清楚java版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36126778/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com