我正在尝试在我的组织中设置 Buildbot,但 SVNPoller 有问题。
每当 subversion 存储库更改时,SVNPoller 都会正确识别这一点,但随后会失败并显示以下错误消息:
SVNPoller 失败 [失败实例:Traceback::changes.project 可能不为 NULL
我很确定我犯了一个错误,但这个错误消息并没有真正帮助,所以任何帮助表示赞赏。
大师.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 ]
扭曲日志
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