我有Hudson 2.1.2(不是Jenkins),我已经设置我的项目每小时轮询我的Mercurial存储库以检查更改。我为我的哈德森用户生成了一个公钥,并将其添加到我的Mercurial服务器上的授权密钥。在进行每小时轮询时,有时一些项目无法轮询Mercurial。以下是我在Mercurial Polling Log中看到的一个例子:
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
但是,如果我点击“立即构建”,它会成功进行轮询,获取更改和构建。
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>
为什么我在自动投票时出错了?