【发布时间】:2020-05-28 03:26:14
【问题描述】:
我正在尝试移动我的构建代理以使用 websocket 协议而不是 JNLP。看起来很接近,但我的代理显示为断开连接。
如果我查看代理的日志,它会说:
Inbound agent connected from x.x.x.x < agent's IP
并且在代理的日志中显示:
2020-05-13T16:36:33.132-04:00 INFO: http://jenkins.domain.internal/login is not ready: 503 < waiting for Jenkins to join the lb
2020-05-13T16:36:43.749-04:00 May 13, 2020 8:36:43 PM hudson.remoting.jnlp.Main$CuiListener status
2020-05-13T16:36:43.749-04:00 INFO: WebSocket connection open
2020-05-13T16:36:43.749-04:00 May 13, 2020 8:36:43 PM hudson.remoting.jnlp.Main$CuiListener status
2020-05-13T16:36:43.749-04:00 INFO: Connected
但代理显示为离线。我无法解决这个问题。如果我将代理从 Jenkins 中删除,那么我会在 Jenkins 日志中看到一行表示无法识别代理。
【问题讨论】:
-
只关注这个帖子!我也卡在同一阶段。顺便说一句,您是否使用了最新版本的 jenkins 2.217 及更高版本。还有agent.jar 4.0 或更高版本。
-
我确实使用了最新的 Jenkins。 GSM 是对的,docker 容器上的代理 jar 是 4.1,Jenkins 的代理管理页面上的代理是 4.0。使用 4.0 代理,一切都是开箱即用的,我不再打开端口 50000。哇!
标签: jenkins