我正在使用來自我的組織的私有存儲庫和Deploy key身份驗證方法。 Thistutorials用於部署密鑰配置非常簡單。這只是我有一個困惑。從機實例don't actually have jenkins installed,因此無法在從機中以sudo -u jenkins
的身份登錄。另一方面,作業實際上並不在主服務器上運行,而是在從服務器實例中運行,因此部署密鑰必須是從服務器生成的公鑰。但是當我嘗試在jenkins服務器上設置作業時,它說Host key verification failed
我猜測是因爲它無法識別主服務器上的密鑰。Jenkins主/從架構上的Github部署密鑰
我錯過了什麼?我很困惑。
編輯:
我想,也許主人不承認奴隸將是一個運行此工作,並給出因爲試圖從自己的認證錯誤公鑰。所以我決定繼續並且無論如何都要開展這項工作。而現在我更加困惑......工作成功運行,但仍然給出了timeout
(我不知道它是否與之相關,仍在搜索中)。有什麼想法嗎?
Started by user User
Building remotely on android-slave (android) in workspace /home/ubuntu/workspace/android-repo
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url [email protected]:Organization/Repo-Droid.git # timeout=10
Fetching upstream changes from [email protected]:Organization/Repo-Droid.git
> git --version # timeout=10
> git fetch --tags --progress [email protected]:Organization/Repo-Droid.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 32e37279cb794b9f8eebbdf5f0d47671eea522c7 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 32e37279cb794b9f8eebbdf5f0d47671eea522c7
> git rev-list 32e37279cb794b9f8eebbdf5f0d47671eea522c7 # timeout=10
Finished: SUCCESS