svnpoller 未触发(twistd.log 中发出警告)
我不确定发生了什么,但我在 buildbot 中遇到了这个奇怪的问题。
SVNPoller 按其应有的方式配置(检查了各种配置示例文件),当我运行 buildbot checkconfig 时,它说一切都很好......但它根本无法工作。
如果我通过调度程序类触发构建,它工作正常,我可以检索源更新并毫无问题地构建(尝试使用 1 小时的时间范围)。
你的问题是轮询器不工作,所以即使我每小时构建一次,更改列仍为空(我得到了各个版本的更改,所以如果我单击构建详细信息,我可以看到带有每次我修改代码库时都是正确的和最新的修订版);所以我无法知道构建是否失败是谁进行了最后的更改。
另一个奇怪的事情是,在 twind.log 中我看到这一行:
Warning: no ChangeSources specified in c['change_source']
我不确定为什么它不起作用,因为 checkconfig 不会引发任何错误。
这样做的结果当然是,唯一构建的东西是每小时的,让我没有轮询器,也不知道谁在每个构建中放入代码。
这是轮询器的代码:
c['change source']=SVNPoller
(svnurl="svn+ssh://[email protected]/svn/project/trunk,
pollinterval=60*5,
histmax=10,
project=myproj,
svnbin = '/usr/bin/svn')
到目前为止看起来不错,所以我不太确定这里出了什么问题......为什么 SVNPoller 没有触发任何构建。
有人对为什么会发生这种情况有一些建议吗?还有其他方法可以从 SVN 服务器获取更改吗?我是 BuildBot 的新手,我并没有真正从手册中获得太多信息;这看起来更像是一本学术书籍,而不是一本向您展示如何做事的手册:)
谢谢!!!!
I am not sure what is going on, but i get this weird issue with buildbot.
The SVNPoller is configured as it should (checked various config example files), when i run the buildbot checkconfig it says that everything is fine....but it won't work at all.
If i trigger a build via the scheduler class it works fine, i can retrieve the source updates and build without problems (tried with a 1h timeframe).
The problem thou is that the poller is not working, so even if i build each hour, the changes column stays empty (i get the changes for the various versions thou, so if i click on the build detail i can see the sourcestamp carrying the right and most recent revision everytime that i modify the codebase); so I have no way to know if the build fails who did the last change.
Another peculiar thing is that in the twistd.log i see this line:
Warning: no ChangeSources specified in c['change_source']
And i am not sure why it wouldn't work since the checkconfig does not raise any error.
The result of this is of course that the only thing built is the hourly one, leaving me without the poller, and without knowing who is putting code in each build.
This is the code for the poller:
c['change source']=SVNPoller
(svnurl="svn+ssh://[email protected]/svn/project/trunk,
pollinterval=60*5,
histmax=10,
project=myproj,
svnbin = '/usr/bin/svn')
So far it looks good, so I am not really sure what is wrong here...why the SVNPoller is not triggering any build.
Anyone that has some suggestions about why is this happening ? Is there any other way to get changes from an SVN server? I am a total newbie at BuildBot and I am not really getting too much out of the manual; that looks much more like a scholastic book instead of being a manual that shows you how you do stuff :)
Thanks!!!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,愚蠢的我:)问题是change_source上缺少下划线...一旦添加它,问题就解决了,
这将轮询source_svn_url处的svn代码库(只需输入你的svn://路径);并会每分钟检查是否有人进行了更改;并将在记录列表中保留 10 个更改(第 10 个之后的任何更改都不会显示,因此如果您进行大量提交,请小心使用)。
希望这对使用 buildbot 的人有所帮助!
Ok, silly me :) the problem is the missing underscore on change_source...once added it the problem is solved
this will poll the svn codebase at source_svn_url (just put your svn:// path); and will check every minute to see if anyone has done changes; and will keep 10 changes in the record list (any change after the 10th will not show up so use it carefully if you do a lot of commits).
Hope that this helps who uses buildbot!