Windows Server 2003 Enterprise で Git + OpenSSH を使用して Hudson をセットアップしましたが、しばらくは問題なく動作していました。その後、突然、クローン中に常に 12% でハングし始めました。ファイルが大きくなりすぎたのではないかと疑っていました。(他のすべてのマシン、Windows Server 2003 標準、Windows 7 Enterprise ではまだ正常に動作しています)、この 1 つのサーバーだけです。
そのため、OpenSSH の代わりに Putty に切り替えました。gitBash と gitExtensions からは機能しましたが、Hudson からはまだ失敗しています。plink の ssh キーの適切なロードに関していくつかの懸念があることを読んだので、キーを使用してパテをロードし、gitBASH から正常に動作するスクリプトに GIT_SSH を設定しましたが、Hudson ではまだ失敗します。
PUTTY を使用した失敗の出力は次のとおりです。
Started by user anonymous
Checkout:workspace / <http://WINDOWS2003SERVER:8080/job/PROJECT/ws/> - hudson.remoting.LocalChannel@1c57a92
Using strategy: Default
Last Built Revision: Revision 2a56d9738e7c0af810e70e2e2051c41bd44f4252 (origin/master) Checkout:workspace / <http://WINDOWS2003SERVER:8080/job/PROJECT/ws/> - hudson.remoting.LocalChannel@1c57a92
GitAPI created
Cloning the remote Git repository
Cloning repository origin
$ C:\bin\Git\bin\git clone -o origin git@GITSERVER:project.git <http://WINDOWS2003SERVER:8080/job/PROJECT/ws/>
ERROR: Error cloning remote repo 'origin' : Could not clone git@GITSERVER:project.git
ERROR: Cause: Error performing C:\bin\Git\bin\git clone -o origin git@GITSERVER:project.git <http://WINDOWS2003SERVER:8080/job/PROJECT/ws/>
Command returned status code 128: Cloning into <http://WINDOWS2003SERVER:8080/job/PROJECT/ws/...>
fatal: The remote end hung up unexpectedly
Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:809)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:740)
at hudson.FilePath.act(FilePath.java:756)
at hudson.FilePath.act(FilePath.java:738)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:740)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1171)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:480)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
at hudson.model.Run.run(Run.java:1362)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
SSH プロトコルが機能する限り、私たちは SSH プロトコルに厳密ではありません。誰かが openSSH で失敗する理由、または Hudson がパテやその他の解決策で失敗する理由を教えていただければ、とても感謝しています!!