我似乎試圖將Jenkins(Ubuntu的EC2 AWS實例)與Bitbucket鏈接起來。使用Bitbucket配置Jenkins
每當我嘗試建立我的項目(我已經安裝上詹金斯git的插件)我得到...
Building in workspace /var/lib/jenkins/jobs/Google adwords/workspace
Checkout:workspace//var/lib/jenkins/jobs/Google adwords/workspace - [email protected]
Using strategy: Default
Cloning the remote Git repository
Cloning repository origin
ERROR: Error cloning remote repo 'origin' : Could not clone [email protected]:DAVID99WORLD/assessme.git
hudson.plugins.git.GitException: Could not clone [email protected]:DAVID99WORLD/assessme.git
at hudson.plugins.git.GitAPI.clone(GitAPI.java:268)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1122)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064)
at hudson.FilePath.act(FilePath.java:842)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1502)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: hudson.plugins.git.GitException: Command "git clone --progress -o origin [email protected]:DAVID99WORLD/assessme.git /var/lib/jenkins/jobs/Google adwords/workspace" returned status code 128:
stdout: Cloning into '/var/lib/jenkins/jobs/Google adwords/workspace'...
stderr: Host key verification failed.
fatal: The remote end hung up unexpectedly
精細 - 這看起來像它試圖去通過ssh卻找不到按鍵。所以我想生成密鑰,~/.ssh
下,我已經拿到了文件authorized_keys
和known_hosts
但根據這裏的文檔......
我應該叫下的〜/ .ssh文件id_rsa
我一直在關注的文件...
https://confluence.atlassian.com/display/BITBUCKET/Using+the+SSH+protocol+with+bitbucket
但它看起來幾乎是上下半場結束或者我錯過了將密鑰放入正確文件的位。
首先 - 我的假設是否正確這是一個ssh問題?其次,如果是的話,是否有人知道如何讓鑰匙匹配,這樣詹金斯可以做出拉和建立?
編輯:我認爲這是一個ssh問題,因爲問題Jenkins Build Using Git with Deploy Key是相關的,但我使用的是bitbucket而不是github。
Thaks很多!我正在設置密碼!大聲笑 –