今日、継続的インテグレーションに hudson を使い始めました。Windowsマシンにインストールし、インストールと構成に関する本の説明に従ってすべてを構成しました。その git プラグインを使用して、git リポジトリからフェッチしてビルドしています。
私の最初の問題はこれと同じです
複製元の git リポジトリは、言い換えなしで shh キーを使用するプライベート リポジトリです。上記の質問は、私の場合はまったく存在しない言い換えを削除する解決策を提案しました。
他のソリューションも検索して試しましたが、成功しませんでした。
以下はトレースログです
Started by user anonymous
Checkout:workspace / C:\Users\UIQBAL\.hudson\jobs\Test\workspace - hudson.remoting.LocalChannel@14be0c6
Using strategy: Default
Checkout:workspace / C:\Users\UIQBAL\.hudson\jobs\Test\workspace - hudson.remoting.LocalChannel@14be0c6
Fetching changes from the remote Git repository
Fetching upstream changes from git@vrtbichler11.informatik.tu-muenchen.de:wsc18
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
hudson.plugins.git.GitException: Error performing command: C:\Program Files (x86)\SmartGitHg 4.5\git\bin\git.exe fetch -t git@vrtbichler11.informatik.tu- muenchen.de:wsc18 +refs/heads/*:refs/remotes/origin/*
null
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:744)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:706)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:193)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:960)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1617)
at hudson.plugins.git.GitSCM.access$900(GitSCM.java:107)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:954)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:919)
at hudson.FilePath.act(FilePath.java:791)
at hudson.FilePath.act(FilePath.java:773)
at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:919)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:698)
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:82)
at hudson.model.Executor.run(Executor.java:137)
Caused by: java.lang.InterruptedException
at java.lang.ProcessImpl.waitFor(ProcessImpl.java:353)
at hudson.Proc$LocalProc.join(Proc.java:222)
at hudson.Launcher$ProcStarter.join(Launcher.java:273)
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:731)
... 18 more
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:961)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:919)
at hudson.FilePath.act(FilePath.java:791)
at hudson.FilePath.act(FilePath.java:773)
at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:919)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:698)
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:82)
at hudson.model.Executor.run(Executor.java:137)
git リポジトリの shh キーを hudson に提供する方法はありますか?
2 番目の問題: VM に hudson もインストールしました。ポート 8080 で実行されますが、Tomcat もポート 8080 で実行されます。hudson のポートを変更しようとしましたが、成功しませんでした。Windows の場合、hudson.xml にありますが、VMフェドラで実行されています。
ポートを変更しようとしたのは
stop hudson
vi /etc/sysconfig/hudson
start hudson
check to see on which port hudson is running and it gives httpPort=12398
[root@wsc18 bin]# ps -ef| grep hudson | grep Port
root 22604 22602 0 04:51 ? 00:00:00 runuser -s /bin/bash hudson -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/bin/java -Djava.awt.headless=true - DHUDSON_HOME=/var/lib/hudson -jar /usr/lib/hudson/hudson.war -- logfile=/var/log/hudson/hudson.log --daemon --httpPort=12398 --debug=5 -- handlerCountMax=100 --handlerCountMaxIdle=20
hudson 22607 22604 0 04:51 ? 00:00:00 bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/bin/java -Djava.awt.headless=true -DHUDSON_HOME=/var/lib/hudson -jar /usr/lib/hudson/hudson.war --logfile=/var/log/hudson/hudson.log --daemon --httpPort=12398 - -debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
hudson 22608 22607 14 04:51 ? 00:00:07 /usr/bin/java -Djava.awt.headless=true -DHUDSON_HOME=/var/lib/hudson -jar /usr/lib/hudson/hudson.war -- logfile=/var/log/hudson/hudson.log --daemon --httpPort=12398 --debug=5 -- handlerCountMax=100 --handlerCountMaxIdle=20
vmlocalhost:12398 で開くと応答しません。
どんな助けでも大歓迎です。
ありがとう