Linux机器无法连接Jenkins的mac机器连接中的slave?

时间:2017-05-26 06:26:34

标签: jenkins jenkins-pipeline master-slave jenkins-slave

在Linux机器上安装了Jenkins,jenkins在名字上安装了jiort04:8080。创建了从属服务器,将其命名为Jenkins中的mac-slave,启动方法通过Java Web Start方法将其用作启动代理,并添加必要的配置。 但是,它无法连接到slave所说的日志和屏幕截图下面附带的错误。enter image description here

日志

`

java.net.UnknownHostException: jiort04
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:589)
 at java.net.Socket.connect(Socket.java:538)
 at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
 at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
 at sun.net.www.http.HttpClient.New(HttpClient.java:308)
 at sun.net.www.http.HttpClient.New(HttpClient.java:326)
 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
 at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1022)
 at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1020)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1019)
 at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
 at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:91)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1466)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1464)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1463)
 at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
 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(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)

`

1 个答案:

答案 0 :(得分:1)

enter image description here试试这个: manage-jenkins - &gt;管理节点 - &gt; configure - &gt;主持人:

  

把奴隶的ip放在这里

在主站和从站之间设置ssh。如果您使用图像中显示的任何用户凭据,则更新用户凭证内的ssh密钥。