【问题标题】:Hudson checkout gets stuck at 'git fetch'Hudson 结账卡在“git fetch”
【发布时间】:2010-11-08 19:10:36
【问题描述】:

我正在使用 git 版本 1.6.2.2.1669.g7eaf8 在 Hudson 1.314 上使用 Hudson Git 插件 0.7.3

当我触发构建时,Hudson 会执行 git fetch,但它永远不会返回。在我杀死它之前,我有一个被困在那里 14 天。

控制台输出 - 它只是在这里连续几天:

由匿名用户发起 结帐:工作区/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 “主控执行器 #0”Id=35 RUNNABLE(本机) 在 java.lang.ProcessImpl.waitFor(本机方法) 在 hudson.Proc$LocalProc.join(Proc.java:166) 在 hudson.plugins.git.GitAPI.fetch(GitAPI.java:102) 在 hudson.plugins.git.GitAPI.fetch(GitAPI.java:486) 在 hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:231) 在 hudson.plugins.git.GitSCM.access$000(GitSCM.java:56) 在 hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:373) 在 hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:358) 在 hudson.FilePath.act(FilePath.java:649) 在 hudson.FilePath.act(FilePath.java:633) 在 hudson.plugins.git.GitSCM.checkout(GitSCM.java:358) 在 hudson.model.AbstractProject.checkout(AbstractProject.java:830) 在 hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) 在 hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) 在 hudson.model.Run.run(Run.java:938) 在 hudson.model.Build.run(Build.java:112) 在 hudson.model.ResourceController.execute(ResourceController.java:93) 在 hudson.model.Executor.run(Executor.java:118) 锁定同步器数量 = 1 - java.util.concurrent.locks.ReentrantLock$NonfairSync@4d9d8bfe

【问题讨论】:

    标签: git hudson


    【解决方案1】:

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

    【讨论】:

    • 实际上,将主机添加到 known_hosts 文件正在等待批准。谢谢。
    • 您能详细说明一下这个问题吗?
    • 当您第一次建立与未知系统的 ssh 连接时,SSH 必须请求允许将此系统的唯一密钥添加到其已知主机文件中。这需要用户交互导致 Git 结帐“挂起” - webcache.googleusercontent.com/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-11
    • 1970-01-01
    • 1970-01-01
    • 2016-08-19
    • 2016-08-06
    • 1970-01-01
    • 2010-10-04
    相关资源
    最近更新 更多