我在 Ubuntu 上安装了 jenkins,当我尝试运行代理来创建节点时,我收到了 IOException:
Failing to obtain http://<Master IP>:8090/computer/<Slave IP>/slave-agent.jnlp
java.io.IOException: Failed to load http://<Master IP>:8090/computer/<Slave IP>/slave-agent.jnlp: 403 Forbidden
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:499)
at hudson.remoting.Launcher.run(Launcher.java:325)
at hudson.remoting.Launcher.main(Launcher.java:283)
据我所知 iptables 没有启动,而且我找不到其背后的原因。
最佳答案
使用此选项:-jnlpCredentials USER:PASSWORD
USER 是您的 Jenkins 用户 ID
关于java - 当奴隶试图联系它时, Jenkins 返回 403 禁止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59465780/