Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial 哈得逊-Can';多色的_Mercurial_Hudson - Fatal编程技术网

Mercurial 哈得逊-Can';多色的

Mercurial 哈得逊-Can';多色的,mercurial,hudson,Mercurial,Hudson,我有Hudson 2.1.2(不是Jenkins),我已经设置了我的项目,每小时轮询我的Mercurial存储库以检查更改。我为我的hudson用户生成了一个公钥,并将其添加到Mercurial服务器上的授权密钥中。在进行每小时一次的民意调查时,有时有些项目无法对Mercurial进行民意调查。以下是我在Mercurial轮询日志中看到的示例: Started on Apr 30, 2012 2:00:30 PM [workspace] $ /usr/bin/hg incoming --styl

我有Hudson 2.1.2(不是Jenkins),我已经设置了我的项目,每小时轮询我的Mercurial存储库以检查更改。我为我的hudson用户生成了一个公钥,并将其添加到Mercurial服务器上的授权密钥中。在进行每小时一次的民意调查时,有时有些项目无法对Mercurial进行民意调查。以下是我在Mercurial轮询日志中看到的示例:

Started on Apr 30, 2012 2:00:30 PM
[workspace] $ /usr/bin/hg incoming --style /opt/home/hudson/jobs/MyProject/workspace/tmp7506244240405638202style --no-merges --rev default --newest-first
remote: ssh_exchange_identification: Connection closed by remote host
abort: no suitable response from remote hg!
Done. Took 5.3 sec
No changes
然而,如果我点击“Build Now”,它将成功地轮询、获取更改和构建

Started by user sdoca
Cleaning the workspace because project is configured to clean the workspace before each build.
$ /usr/bin/hg clone --rev default ssh://hudson@my.mercurial.server:22//opt/hg/current/MyProject /opt/home/hudson/jobs/MyProject/workspace
requesting all changes
adding changesets
adding manifests
adding file changes
added 31 changesets with 40 changes to 11 files
updating working directory
5 files updated, 0 files merged, 0 files removed, 0 files unresolved
[workspace] $ /usr/bin/hg log --rev . --template {node}
[INFO] Using bundled Maven 3 installation
[INFO] Checking Maven 3 installation environment
...
<snip>
由用户sdoca启动
正在清理工作区,因为project配置为在每次生成之前清理工作区。
$/usr/bin/hg克隆--版本默认值ssh://hudson@my.mercurial.server:22//opt/hg/current/MyProject/opt/home/hudson/jobs/MyProject/workspace
请求所有更改
添加变更集
添加舱单
添加文件更改
在11个文件中添加了31个变更集和40个变更
更新工作目录
更新了5个文件,合并了0个文件,删除了0个文件,未解析0个文件
[工作区]$/usr/bin/hg日志--修订版--模板{node}
[信息]使用捆绑的Maven 3安装
[信息]正在检查Maven 3安装环境
...

你知道为什么我在自动轮询中出错吗?

看起来你在hgrc文件中的路径不正确。作为暴力解决方案,您可以擦除工作区。不,hgrc文件中的路径是正确的。如果不正确,手动“立即生成”也将不起作用。Hudson 3.1.0也存在同样的问题-轮询错误ssh_exchange_标识,但生成有效,同时在命令行工作区键入轮询命令。看起来您在hgrc文件中的路径不正确。作为暴力解决方案,您可以擦除工作区。不,hgrc文件中的路径是正确的。如果不正确,手动“立即构建”也不会起作用。Hudson 3.1.0也存在同样的问题-轮询错误ssh_exchange_标识,但构建可以工作,在命令行上键入轮询命令也可以工作