当前位置: 首页 > 工具软件 > Hudson > 使用案例 >

linux git hudson,Hudson git插件不会在Linux上克隆repo

辛健
2023-12-01

Started by user anonymous

Checkout:workspace / /home/tomcat/.hudson/jobs/CIExample/workspace - hudson.remoting.LocalChannel@3861e6

Using strategy: Default

Checkout:workspace / /home/tomcat/.hudson/jobs/CIExample/workspace - hudson.remoting.LocalChannel@3861e6

GitAPI created

Cloning the remote Git repository

Cloning repository origin

$ git clone -o origin https://mattupstate@github.com/mattupstate/CIExample.git /home/tomcat/.hudson/jobs/CIExample/workspace

ERROR: Error cloning remote repo 'origin' : Could not clone https://mattupstate@github.com/mattupstate/CIExample.git

ERROR: Cause: Error performing git clone -o origin https://mattupstate@github.com/mattupstate/CIExample.git /home/tomcat/.hudson/jobs/CIExample/workspace

Trying next repository

ERROR: Could not clone from a repository

FATAL: Could not clone

hudson.plugins.git.GitException: Could not clone

at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:587)

at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:535)

at hudson.FilePath.act(FilePath.java:753)

at hudson.FilePath.act(FilePath.java:735)

at hudson.plugins.git.GitSCM.checkout(GitSCM.java:535)

at hudson.model.AbstractProject.checkout(AbstractProject.java:1044)

at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)

at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)

at hudson.model.Run.run(Run.java:1257)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)

at hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:127)

这个建筑根本不像一些人所说的那样挂着。它立即失效。此外,如果我登录到我的框中,请切换到tomcat用户(运行tomcat的用户,从而运行Hudson),然后运行以下命令:

git clone -o origin https://mattupstate@github.com/mattupstate/CIExample.git /home/tomcat/.hudson/jobs/CIExample/workspace

它运行时没有问题,并且repo是克隆的。我手动运行该命令遇到的唯一问题是工作区文件夹是否已存在。Git不喜欢我要克隆到的本地文件夹已经存在的情况。我有一种感觉哈德森是在试图复制之前创建那个文件夹?

任何帮助都将不胜感激。

 类似资料: