我想推回從構建到github的結果,因此我使用Git發佈者插件。但是,當我嘗試從Cloudbees添加SSH公鑰作爲Github上的部署密鑰時,Github告訴我:'密鑰已被使用',因爲它也是另一個存儲庫的一部分。Cloudbees&Github:錯誤:密鑰已在使用
我想知道爲什麼我不能爲多個獨立的存儲庫使用相同的公鑰?
[更新] 到目前爲止的答案表明問題不清楚。 Cloudbees生成一個密鑰對並在github上使用它,我還沒有找到一種方法來創建一個備用對,所以我被一對卡住了。
我已經添加了公共密鑰來回購A Cloudbees可以從回購A中提取。但是,我想使用相同的版本來推送回購B.因此,似乎合乎邏輯的添加相同的(我的個人Cloudbees密鑰)來回購B,所以cloudbees也可以推動回購B.
然而,在Github上只有一個回購可以使用deploy鍵:
A deploy key is an SSH key that is stored on the server and grants access to a single repo on GitHub. This key is attached directly to the repo instead of to a user account.
所以很顯然的是,公共密鑰不能連接到一個以上的回購協議。但是,我想不出爲什麼會出現這種情況?
有人嗎?
可能重複的[Github,(Error:Key already in use)](http://stackoverflow.com/questions/21160774/github-error-key-already-正在使用) – kenorb