首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Hudson未能克隆git存储库+ Hudson端口更改

Hudson未能克隆git存储库+ Hudson端口更改
EN

Stack Overflow用户
提问于 2013-07-14 03:19:46
回答 2查看 377关注 0票数 1

今天,我开始使用hudson进行持续集成。我在我的windows机器上安装了它,并配置了有关安装和配置的书中描述的所有内容。我正在使用它的git插件从git存储库中获取并构建。

我的第一个问题和这个一样

Unable to Run Build on Hudson Using Git

我想要克隆的git存储库是一个私有存储库,它使用shh键而不需要翻译。上述问题提出了删除我根本不存在的释义的解决办法。

我也搜索并尝试了一些其他的解决方案,但没有成功。

下面是跟踪日志

代码语言:javascript
复制
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)  

有没有办法向hudson提供我的git存储库shh密钥?

第二个问题:我还在VM上安装了,它运行在端口8080上,但我的tomcat也运行在端口8080上。我试图更改hudson的端口,但没有成功,对于windows,它在hudson.xml中,但是我的VM运行在fedora上。

我想要改变的是

代码语言:javascript
复制
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上打开它时,它没有响应。

任何帮助都将不胜感激。

谢谢

EN

回答 2

Stack Overflow用户

发布于 2013-07-14 12:12:01

通过在iptables中添加端口12398的条目来解决第二个问题

票数 1
EN

Stack Overflow用户

发布于 2013-10-08 04:48:40

我可以通过添加windows环境变量来解决您的第一个问题。

代码语言:javascript
复制
Name: HOME
Value: $USERPROFILE

有关更多信息,请访问此URL http://element34.ca/blog/jenkins-remote-windows-nodes-and-private-github-repos

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17636223

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档