簡體   English   中英

Jenkins 從主節點與 Git 連接,但不與從節點連接(權限被拒絕(公鑰))

[英]Jenkins connect with Git from MAster node but not with Slave node (Permission denied (publickey))

下面是我們從 jenkins 中的從節點運行作業時的錯誤,當我們在主節點中運行相同的作業時它工作正常。

''' ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git fetch --tags --progress git@github.com:xxxxxxxxx/xxxxxxxxxxxx.git +refs/heads/ :refs/remotes /origin/ " 返回狀態碼 128:stdout:stderr:ubuntu@github.com:權限被拒絕(公鑰)。 致命:無法從遠程存儲庫中讀取。

請確保您具有正確的訪問權限並且存儲庫存在。 '''

  1. 嘗試:將 ssh 添加到 git
  2. 從節點配置為 git 用戶名和密鑰

任何人都有任何線索,為什么從節點沒有連接到 git

嘗試:

Make sure to select that credentials when using your SSH Git URL in the Jenkins pipeline definition.

暫無
暫無

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

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