在Jenkins上通过Java Web Start启动从属代理时出现问题 [英] Problems launching the slave agent via Java Web Start on Jenkins

查看:120
本文介绍了在Jenkins上通过Java Web Start启动从属代理时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近将Jenkins升级到了最新版本。

We have recently upgraded Jenkins to the latest verion.

从那时起,我每次尝试通过命令行都无法通过Java WebStart启动从属服务器启动它我在详细信息面板中显示无法启动应用程序错误

and since then ive not been able to launch the slaves via Java WebStart through the command line everytime I try to launch it I get "Unable to Launch the application" error

CouldNotLoadArgumentException[ Could not load file/URL specified: http://MyServer:8080/computer/Slave1/slave-agent.jnlp]
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

当尝试浏览Jenkins网站并从那里进行午餐时,IT WORKS然后如果你重新启动该框,则启动时的命令行无法完成工作。

When try browsing to the Jenkins site and lunching it from there IT WORKS however if you then restart the box then the command line on the start up fails to do the job.

这是我试图运行的命令f rom the slave

This is the command I am trying to run from the slave

cd "C:\Program Files (x86)\Java\jre7\bin"
javaws http://MyServer:8080/computer/Slave1/slave-agent.jnlp

问题是这曾经工作过。
我也尝试更新到最新版本的Java,但没有运气,

The problem is that this used to work. I have also tried updating to the latest version of Java but no luck,

任何想法有人吗?

推荐答案

据说,大部分由于Jenkins论坛上的帖子,这个新行为是由于修复了一个安全问题:https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2013-01-04

Supposedly, due in most part to posts on the Jenkins forums, this new behavior is due to a fix for a security issue: https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2013-01-04

似乎有两种解决方案:


  1. 下载JNLP文件(通过浏览器,wget,curl等)然后在本地运行 - 可能需要额外的参数。

  2. 转到管理Jenkins - >配置全局安全性,并在基于项目的矩阵授权下策略,在奴隶部分启用连接,用户匿名。如果有人模仿奴隶(但在我的情况下,在私人工作网络上 - 这不是问题,这会让你开放攻击。)

这篇关于在Jenkins上通过Java Web Start启动从属代理时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆