4

git と hudson を使用していくつかのテストをビルドするプロジェクトに取り組んでいます。私はすべてのハドソン構成を行い(少なくとも行ったと思います)、Windows用のgitをダウンロードしました。リポジトリは、オフィスの Linux マシンにあります。ここでテストをビルドすると、次のエラーが表示されます。

Started by user anonymous
Checkout:workspace / C:\Users\username\.hudson\jobs\GitTest\workspace - hudson.remoting.LocalChannel@35e5abf2
Using strategy: Default
Checkout:test2 / C:\Users\username\git\test2 - hudson.remoting.LocalChannel@35e5abf2
Fetching changes from the remote Git repository
Fetching upstream changes from user@gitrepo:/var/gitrepo/test
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR:  (Underlying report) : Error performing command: C:\Program Files (x86)\Git\cmd\git.exe fetch -t user@gitrepo:/var/gitrepo/test +refs/heads/master:refs/remotes/origin/master
null
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:931)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:889)
at hudson.FilePath.act(FilePath.java:791)
at hudson.FilePath.act(FilePath.java:773)
at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:889)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:668)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1515)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:428)
at hudson.model.Run.run(Run.java:1390)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
at hudson.model.ResourceController.execute(ResourceController.java:81)
at hudson.model.Executor.run(Executor.java:137) 

何らかの理由で、fetch コマンドが null を返します。コマンドラインでコマンドを試すと、強制終了するまで何も出力されずにハングします。私はしばらくこれを研究してきましたが、答えが見つかりませんでした。

どんな助けでも大歓迎です。

4

2 に答える 2

1

私はこのようなことが起こりました.リポジトリに最初にクエリを実行したときに自動的に受け入れられなかったのはフィンガープリント(gitがRSA検証を使用している場合)であることが判明しました>.

hudson ユーザーとしてリポジトリで手動クエリを実行することで解決しました。

git ls-remote -h git@yourepo.git HEAD
于 2013-04-16T08:02:21.213 に答える