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

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不喜欢我要克隆到的本地文件夹已经存在的情况。我有一种感觉哈德森是在试图复制之前创建那个文件夹?

任何帮助都将不胜感激。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值