簡體   English   中英

Jenkins 構建從站 - 無法連接

[英]Jenkins Build Slave - Connection not possible

我想通過 JNLP 連接到 Master Jenkins 服務器並始終出現以下錯誤

Failing to obtain https://<master-server>/buildserver/computer/CaptainBrowser/slave-agent.jnlp?encrypt=true
 java.io.IOException: https://<master-server>/buildserver/computer/CaptainBrowser/slave-agent.jnlp?encrypt=true doesn't look like a JNLP file; content type was text/html; charset=iso-8859-1
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:306)
at hudson.remoting.Launcher.run(Launcher.java:219)
at hudson.remoting.Launcher.main(Launcher.java:192)

我有一個類似的問題。 對我來說,問題是“配置系統”中的 Jenkins URL 設置為“http://...”而不是“https://...”。 這意味着當我設置一個節點時,它顯示要運行的 java 命令也使用 http。 例如它說 java -jar slave.jar -jnlpUrl http:///computer//slave-agent.jnlp -secret 運行它產生了'未能獲得 http:///computer//slave-agent.jnlp?encrypt=true ' 將服務器 URL 更改為 'https' 使其能夠為我工作。 它將 Jenkins 節點的命令更改為“https” URL 並運行該命令。

就我而言,它在將 HTTPS 協議添加到我的 EC2 機器安全組后開始工作。 然后再次在 jenkins 從終端上運行 jnlp 命令,它將被連接。

Goto jenkins --> Manage jenkins --> configure system --> http://yoursystem ip:8080/ Make sue it will be http not https. Manage Jenkins --> Global security--> Agent --> TCP port select代理協議下固定 50000 和 Inbound TCP Agent Protocol/4(TLS 加密)

在此處輸入圖像描述

創建 Agent 節點 gain it will work

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM