我正在尝试在我的组织中设置Buildbot,但是SVNPoller存在问题。
每当subversion存储库正确更改SVNPoller时,都会认识到这一点,但随后会失败并显示以下错误消息:
SVNPoller失败[失败实例:追溯:: change.project可能不是NULL
我很确定我犯了一个错误,但是这个错误信息并没有真正帮助,所以任何帮助都会受到赞赏。
Master.cfg中:
svn_poller = SVNPoller(
svnurl=source_code_svn_url,
pollinterval=60*10, # seconds
svnuser='job_guest',
svnpasswd='job_guest',
svnbin='/usr/bin/svn'
)
c['change_source'] = [ svn_poller ]
twistd.log
2010-11-11 14:24:01+0100 [-] SVNPoller polling
2010-11-11 14:24:03+0100 [-] svnPoller: _process_changes 34177 .. 34178
2010-11-11 14:24:03+0100 [-] Adding change revision 34178
2010-11-11 14:24:03+0100 [-] adding change, who doberkofler, 1 files, rev=34178, branch=None, repository=http://10.43.1.11/svn/job/ljs_app/trunk, comments test, category None, project None
2010-11-11 14:24:03+0100 [-] SVNPoller failed [Failure instance: Traceback: <class 'pysqlite2.dbapi2.IntegrityError'>: changes.project may not be NULL
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:312:_startRunCallbacks
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:328:_runCallbacks
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:289:_continue
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:285:unpause
--- <exception caught here> ---
/usr/lib/python2.5/site-packages/twisted/internet/defer.py:328:_runCallbacks
/usr/lib/python2.5/site-packages/buildbot/changes/svnpoller.py:504:submit_changes
/usr/lib/python2.5/site-packages/buildbot/changes/manager.py:114:addChange
/usr/lib/python2.5/site-packages/buildbot/master.py:1146:addChange
/usr/lib/python2.5/site-packages/buildbot/db/connector.py:308:addChangeToDatabase
/usr/lib/python2.5/site-packages/buildbot/db/connector.py:212:runInteractionNow
/usr/lib/python2.5/site-packages/buildbot/db/connector.py:237:_runInteractionNow
/usr/lib/python2.5/site-packages/buildbot/db/connector.py:326:_txn_addChangeToDatabase
/usr/lib/python2.5/site-packages/buildbot/db/dbspec.py:105:execute
]
2010-11-11 14:34:01+0100 [-] SVNPoller polling
答案 0 :(得分:0)
我发现导致错误的原因是:当使用SVNPoller时,也可以设置项目参数!
svn_poller = SVNPoller(
project='project',
svnurl=source_code_svn_url,
pollinterval=60*10, # seconds
svnuser='job_guest',
svnpasswd='job_guest',
svnbin='/usr/bin/svn'
)
c['change_source'] = [ svn_poller ]
答案 1 :(得分:0)
事实上,如果您使用0.8或更高版本,即使您不想要,也要求您指定项目;因为没有默认值。
只需在轮询器中添加project = 'myproject'
,就像其他用户建议的那样,你应该好好去。