本文介绍了哈德森签出卡在'git fetch'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Hudson 1.314上使用git版本1.6.2.2.1669.g7eaf8
和Hudson Git插件0.7.3当我触发一个构建,Hudson做了一个git fetch,但它永远不会返回。



控制台输出 - 它只是在这里呆了几天:

 
由用户匿名

开始签出:workspace / C:\ hudson \jobs\Group1-git\workspace - hudson.remoting。 LocalChannel @ 3d858159

上一个版本:#63

签出:工作区/ C:\ hudson \jobs\Group1-git\workspace - hudson.remoting.LocalChannel @ 3d858159

从远程Git存储库获取更改

从ssh获取上游更改://git@git/devl.git

[工作区] $ git.cmd fetch ssh://git@git/devl.git + refs / heads / *:refs / remotes / origin / *



 
主执行器#0

主机的执行程序#0Id = 35 RUNNABLE(本地)
在java.lang.ProcessImpl.waitFor(本地方法)$ b $ h at hudson.Proc $ LocalProc .join(Proc.java:166)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:102)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:486 )
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:231)
at hudson.plugins.git.GitSCM.access $ 000(GitSCM.java:56)
at hudson .plugins.git.GitSCM $ 2.invoke(GitSCM.java:373)
at hudson.plugins.git.GitSCM $ 2.invoke(GitSCM.java:358)
at hudson.FilePath.act(FilePath .java:649)
at hudson.FilePath.act(FilePath.java:633)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:358)
at hudson。 model.AbstractProject.checkout(AbstractProject.java:830)
at hudson.model.AbstractBuild $ AbstractRunner.checkout(AbstractBuild.java:314)
at hudson.model.AbstractBuild $ AbstractRunner.run(AbstractBuild。
at hudson.model.Run.run(Run.java:938)
at hudson.model.Build.run(Build.java:112)
at hudson.model .ResourceController.execute(ResourceController.java:93)
a t hudson.model.Executor.run(Executor.java:118)

锁定同步器的数量= 1
- java.util.concurrent.locks.ReentrantLock$NonfairSync@4d9d8bfe


解决方案

git可能正在等待输入 - 可能是ssh密码或keyphrase访问私钥?


I'm using git version 1.6.2.2.1669.g7eaf8 with Hudson Git plugin 0.7.3 on Hudson 1.314

When I trigger a build, Hudson does a git fetch, but it never returns. I had one stuck there for 14 days before I killed it.

The console output - it just sits here for days on end:

    Started by user anonymous

    Checkout:workspace / C:\hudson\jobs\Group1-git\workspace - hudson.remoting.LocalChannel@3d858159

    Last Build : #63

    Checkout:workspace / C:\hudson\jobs\Group1-git\workspace - hudson.remoting.LocalChannel@3d858159

    Fetching changes from the remote Git repository

    Fetching upstream changes from ssh://git@git/devl.git

    [workspace] $ git.cmd fetch ssh://git@git/devl.git +refs/heads/*:refs/remotes/origin/*

Here's the stack trace for the thread that is stuck:

Executor #0 for master

"Executor #0 for master" Id=35 RUNNABLE (in native)
    at java.lang.ProcessImpl.waitFor(Native Method)
    at hudson.Proc$LocalProc.join(Proc.java:166)
    at hudson.plugins.git.GitAPI.fetch(GitAPI.java:102)
    at hudson.plugins.git.GitAPI.fetch(GitAPI.java:486)
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:231)
    at hudson.plugins.git.GitSCM.access$000(GitSCM.java:56)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:373)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:358)
    at hudson.FilePath.act(FilePath.java:649)
    at hudson.FilePath.act(FilePath.java:633)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:358)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:830)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266)
    at hudson.model.Run.run(Run.java:938)
    at hudson.model.Build.run(Build.java:112)
    at hudson.model.ResourceController.execute(ResourceController.java:93)
    at hudson.model.Executor.run(Executor.java:118)

    Number of locked synchronizers = 1
    - java.util.concurrent.locks.ReentrantLock$NonfairSync@4d9d8bfe
解决方案

Could git be waiting for input - perhaps an ssh password or keyphrase to access the private key?

这篇关于哈德森签出卡在'git fetch'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 04:53