具有自定义端口的服务器上的詹金斯奴隶

wut*_*aer 3 port slave jenkins

我已经在 suse 12.1 上安装了 jenkins 并将配置中的端口更改为 8081

/etc/sysconfig/jenkins
Run Code Online (Sandbox Code Playgroud)

JENKINS_PORT="8081"

Web 界面在此端口上工作没有任何问题,但是当我想使用 JNLP 启动客户端时,他给了我标准端口:

javaws http://192.168.1.137:8080/computer/192.168.1.190/slave-agent.jnlp
Run Code Online (Sandbox Code Playgroud)

现在我尝试使用正确的端口运行它:

javaws http://192.168.1.137:8081/computer/192.168.1.190/slave-agent.jnlp
Run Code Online (Sandbox Code Playgroud)

但不久之后我收到一个错误:

java.io.FileNotFoundException: http://192.168.1.137:8080/jnlpJars/remoting.jar
    at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
    at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(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)
Caused by: java.io.FileNotFoundException: http://192.168.1.137:8080/jnlpJars/remoting.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    ... 14 more
Run Code Online (Sandbox Code Playgroud)

他尝试了错误的端口。如何正确更改端口?

Chr*_*Orr 5

您是否通过管理 Jenkins → 配置系统 → Jenkins URL 下的配置选项更新了 URL?