无法获取“通过Java Web Start启动代理"启动方法中的选项 [英] Unable to get "launch agent via java web start" option in the launch method
问题描述
我已经从ubuntu服务器安装了jenkins.我试图创建一个新的Windows从节点.但是我无法在启动方法中选择启动Java Web Start从代理"选项
I have installed jenkins from ubuntu server.Iam trying to create a new windows slave node.But i am unable to get the option "Launch Java Web Start slave agent" to select in the launch method
我已经尝试过了
转到Jenkins仪表板->管理Jenkins->配置全局安全性
Go to Jenkins dashboard -> Manage Jenkins -> Configure Global Security
单击启用安全性"(如果尚未选中).
Click on Enable Security, if not already checked.
选择"JNLP代理的TCP端口的随机"单选按钮.
Select the Random radio button for TCP port for JNLP agents option.
保存此配置
它不能解决我的问题
名称:Windows 说明:Windows Slave 遗嘱执行人人数:1 根目录:C:/jenkins/ 用法:尽可能使用此节点 启动方法:启动Java Web Start从属代理
Name : Windows Description : windows slave No of executors : 1 Root directory : C:/jenkins/ Usage : Use this node as much as possible Launch method : Launch Java Web Start slave agent
我希望在启动方法启动Java Web Start从属代理"中可以使用此选项
I want this option to be available in my launch method "Launch Java Web Start slave agent"
推荐答案
我认为措辞可能已更改,并且此处,此处,此处 ,等等),以阐明措辞更改:
I think maybe the wording changed and the documentation has not kept up. Documenting here even tho plenty of other answers on S/O (here, here, here, here, etc), so as to clarify the wording change:
WAS :通过Java Web Start启动从属代理"
现在:通过将代理连接到主服务器来启动代理"
WAS: "Launch slave agents via Java Web Start"
NOW: "Launch agent by connecting it to the master"
验证:
下载2.176.1并执行新的简单安装(java -jar jenkins.war
)
仅添加了" WMI Windows代理插件"(又名Windows从站).
Downloaded 2.176.1 and performed new simple install (java -jar jenkins.war
)
Added only "WMI Windows Agents Plugin" (aka windows slaves).
詹金斯|管理詹金斯| 配置全局安全性
代理商
入站代理程序的TCP端口:[o]随机
Jenkins | Manage Jenkins | Configure Global Security
Agents
TCP port for inbound agents: [o] Random
詹金斯|管理詹金斯| 节点
新节点[Node-1],
[o]永久代理人
[确定]
远程根目录:[D:\ J2-Node-1]
启动方法:[通过将代理连接到主服务器来启动代理" ]
(此措词已更改,是什么让您失望)
[保存]
Jenkins | Manage Jenkins | Nodes
New Node [Node-1],
[o] Permanent Agent
[OK]
Remote root directory: [D:\J2-Node-1]
Launch Method: ["Launch agent by connecting it to the master"]
(This wording has changed and is what's throwing you off)
[Save]
现在将为您提供预期的选项: 将代理连接到Jenkins的方法之一:
You will now be presented with the expected options: Connect agent to Jenkins one of these ways:
•[启动代理]从浏览器启动代理
•从代理命令行运行:
•[Launch agent] Launch agent from browser
•Run from agent command line:
java -jar agent.jar -jnlpUrl http://localhost:8080/computer/Node/slave-agent.jnlp \
-secret 5580c9391dca3b680fb906647ee115b43497dc975e115d51e59cf73ef1c31789 -workDir "D:\J2-Node-1"
现在,单击启动按钮将按预期方式工作,并弹出弹出窗口和作为服务安装"选项.
Clicking the launch button now works as expected and brings up the pop-up window and the option to "Install as a Service".
我仍然建议使用让jenkins作为Windows服务将Windows奴隶作为Windows服务来控制"通过DCOM使用启动,只需查看 Windows代理无法通过DCOM启动,它们似乎对我们来说运行良好,并且最终更易于管理.
I'd still suggest using Launch via DCOM using "Let jenkins control this Windows slave as a Windows service", just review documentation at Windows agents fail to start via DCOM and they seem to work fine for us and is ultimately easier to manage.
这篇关于无法获取“通过Java Web Start启动代理"启动方法中的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!