Jenkins无法验证Gitlab存储库

时间:2016-11-07 06:20:25

标签: jenkins ssh gitlab

我正在尝试将Jenkins与Gitlab集成。 1)Jenkins在我的私人IP服务器中。 2)我已经从Gitbash生成了SSH密钥并创建了一个文件夹' .ssh'并粘贴在Jenkins目录中。 3)在Jenkins中提供正确的SSH路径以及凭据。 4)拥有所有插件。

问题: Jenkins无法验证Gitlab存储库。

错误

Started by user jenkinadmin
Building in workspace C:\Program Files (x86)\Jenkins\workspace\Hello World GitLab
 > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files\Git\bin\git.exe config remote.origin.url git@gitlab.com:dhananjaymaurya/TAA_POC.git # timeout=10
Fetching upstream changes from git@gitlab.com:dhananjaymaurya/TAA_POC.git
 > C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_ASKPASS to set credentials 
 > C:\Program Files\Git\bin\git.exe fetch --tags --progress git@gitlab.com:dhananjaymaurya/TAA_POC.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from git@gitlab.com:dhananjaymaurya/TAA_POC.git
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
    at hudson.scm.SCM.checkout(SCM.java:495)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
    at hudson.model.Run.execute(Run.java:1720)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:404)
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --progress git@gitlab.com:dhananjaymaurya/TAA_POC.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: Host key verification failed.
fatal: Could not read from remote repository.

请确保您拥有正确的访问权限 存储库存在。

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
... 11 more

错误:null 完成:FAILURE`

0 个答案:

没有答案