master: linux
slave: win7 64位系统
在配置好系统后,采用jnlp的方式启动slave节点,报错如下:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://127.0.0.1:8080/jnlpJars/remoting.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
修改办法:
到jenkins面板: http://127.0.0.1:8080, 进入Manage Jenkins ,选择Configure System,
修改Jenkins Location选项下面的Jenkins URL为master机器的http://IP:port,
然后重新生成jnlp文件发送到slvae节点,然后右键选择Launch。
如果,不想修改Jenkins的
URL,那么用notepad++打开slave-agent.jnlp文件,将其中的127.0.0.1修改为master机器的IP或者域名,也可以。
jenkins 启动slave,出现com.sun.deploy.net.FailedDownloadException:
Unable to load resource: http://127.0.0.1:8080/jnlpJars/remoting.jar
时间: 2024-10-05 23:42:46