java - 当奴隶试图联系它时, Jenkins 返回 403 禁止

标签 java ubuntu jenkins

我在 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/

相关文章:

maven - 是否可以使用 mvn 命令访问 pom.xml 文件内的标签?

ios - Jenkins + iOS + TestFlight API

jenkins - 在 Jenkins 管道中 rtUpload 后获取 Artifactory URL

java - 在 Java 中找不到符号 SetUtils

java - 为什么 async-http-client 不限制我的请求?

python - 如何运行 django sslserver(https) 使得网络中的远程系统也可以访问?

python - 在 ubuntu 服务器上运行 python 脚本并连接到服务器并与脚本交互

java - 使用 java 9 编译 lambda 表达式时 Maven 构建失败

java - Hibernate @ManyToMany 仅使用所属表中的 FK 来删除连接表中的条目

linux - Perl - 在 Padre、Windows 中运行的脚本。但不是在 Linux Ubuntu 中