昨天,我的jenkins大师(v 1.646,linux debian Jessie 8.3)正在工作,几个奴隶通过jnlp命令连接它:
java -jar slave.jar -jnlpUrl http://myhost:8080/computer/bob-pc.local/slave-agent.jnlp
现在我猜想有些事情发生了变化(战争更新?插件更新?安全选项改变了?)因为现在我的奴隶不能连接,因为现在jnlp命令:
java -jar slave.jar -jnlpUrl http://myhost:8080/computer/bob-pc.local/slave-agent.jnlp -secret rt435te435a208c7201d99f7b1e5dd9c044da86d12efd8527
该命令的 -secret ...
部分是新的,我无法弄清楚添加此选项的更改 .
How to allow slaves to connect to jenkins master without "-secret" jnlp option ?
1 回答
此凭据行为由Matrix Authorization Strategy Plugin控制,默认情况下此插件随jenkins一起提供 .
如果您是jenkins管理员,可以按照以下步骤关闭它:
在 Matrix-based security 或 Project-based Matrix Authorization Strategy 中,请确保您已为 Anonymous 角色检查了Slave的
Connect
选项 .