Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过jenkins错误在本地服务器上克隆Git_Git_Jenkins - Fatal编程技术网

通过jenkins错误在本地服务器上克隆Git

通过jenkins错误在本地服务器上克隆Git,git,jenkins,Git,Jenkins,各位, 我有一些关于詹金斯和吉特的问题。我在本地服务器中创建了一个新用户,并创建了一个空的git repo。我在另一台机器中使用jenkins轮询本地服务器中的更改并跟踪更改。我在本地服务器中添加了ssh授权密钥,用于直接连接服务器,在计算机中使用jenkins,我有一个配置文件,可以通过服务器访问标识。但我总是会犯这个错误,我不确定问题出在哪里 有人能帮我吗 Building in workspace /var/lib/jenkins/jobs/MultiCom Git/workspace C

各位,

我有一些关于詹金斯和吉特的问题。我在本地服务器中创建了一个新用户,并创建了一个空的git repo。我在另一台机器中使用jenkins轮询本地服务器中的更改并跟踪更改。我在本地服务器中添加了ssh授权密钥,用于直接连接服务器,在计算机中使用jenkins,我有一个配置文件,可以通过服务器访问标识。但我总是会犯这个错误,我不确定问题出在哪里

有人能帮我吗

Building in workspace /var/lib/jenkins/jobs/MultiCom Git/workspace
Checkout:workspace / /var/lib/jenkins/jobs/MultiCom Git/workspace - hudson.remoting.LocalChannel@e941c2
Using strategy: Default
Checkout:workspace / /var/lib/jenkins/jobs/MultiCom Git/workspace - hudson.remoting.LocalChannel@e941c2
GitAPI created
Cloning the remote Git repository
Cloning repository origin
$ /usr/bin/git clone -o origin gituser@192.168.22.112:/home/gituser/Git/multicom/multicom.git "/var/lib/jenkins/jobs/MultiCom Git/workspace"
ERROR: Error cloning remote repo 'origin' : Could not clone gituser@192.168.22.112:/home/gituser/Git/multicom/multicom.git
ERROR: Cause: Error performing /usr/bin/git clone -o origin gituser@192.168.22.112:/home/gituser/Git/multicom/multicom.git /var/lib/jenkins/jobs/MultiCom Git/workspace
Command returned status code 128: Cloning into /var/lib/jenkins/jobs/MultiCom Git/workspace...
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: The remote end hung up unexpectedly

Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:809)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:740)
    at hudson.FilePath.act(FilePath.java:784)
    at hudson.FilePath.act(FilePath.java:766)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:740)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465)
    at hudson.model.Run.run(Run.java:1404)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)

确保为运行jenkins的用户设置了密钥。试着做一个克隆从盒子,作为詹金斯用户和尝试。查看纯ssh是否正在发生。使用
-v
(详细)输出查看发生了什么