[users at bb.net] Problem with GitLabStatusPush
Katia De Lu
katiadelu at gmail.com
Tue Jan 10 21:29:03 UTC 2017
Hi all,
I’m having trouble getting GitLabStatusPush working, and I’m hoping someone
can help.
I’m using Buildbot 0.9.2.
I’ve added the following lines to my master.cfg, copy-pasted from
http://docs.buildbot.net/current/manual/cfg-reporters.html#gitlabstatuspush
(I realise I need to change the arguments to my token, base URL, etc. -
that’s not the problem):
c['services'] = []
from buildbot.plugins import reporters
gl = reporters.GitLabStatusPush('private-token',
context='continuous-integration/buildbot',
baseUrl='https://git.yourcompany.com')
c['services'].append(gl)
But it fails to pass ‘checkconfig’ with the following errors:
$ buildbot checkconfig master.cfg
error while parsing config file:
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py",
line 150, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.7/site-packages/buildbot/scripts/checkconfig.py",
line 58, in checkconfig
return _loadConfig(basedir=basedir, configFile=configFile, quiet=quiet)
File "/usr/lib/python2.7/site-packages/buildbot/scripts/checkconfig.py",
line 28, in _loadConfig
config.FileLoader(basedir, configFile).loadConfig()
File "/usr/lib/python2.7/site-packages/buildbot/config.py", line
162, in loadConfig
self.basedir, self.configFileName)
--- <exception caught here> ---
File "/usr/lib/python2.7/site-packages/buildbot/config.py", line
119, in loadConfigDict
exec(f, localDict)
File "/home/kdelu/Git/buildbot-0.9-research/master.cfg", line 207, in <module>
gl = reporters.GitLabStatusPush('private-token',
context='continuous-integration/buildbot',
baseUrl='https://git.yourcompany.com')
File "/usr/lib/python2.7/site-packages/buildbot/plugins/db.py", line
315, in __getattr__
raise AttributeError(str(err))
exceptions.AttributeError: Unable to load
buildbot.reporters:GitLabStatusPush: No module named py
Configuration Errors:
error while parsing config file: Unable to load
buildbot.reporters:GitLabStatusPush: No module named py (traceback in
logfile)
As you can see, I am importing reporters (in fact, the import line is
redundant, as I import all the plugins at the top of my master.cfg file; I
only added the extra import out of desperation).
Why can’t it find the module?
I’ve found this ticket http://trac.buildbot.net/ticket/3286 that seems to
suggest the GitLabStatusPush plugin hasn’t been ported across, but it looks
like the feature was restored in release 0.9.0b9 (
http://docs.buildbot.net/current/relnotes/0.9.0b9.html#features), and the
release notes for 0.9.2 (
http://docs.buildbot.net/current/relnotes/index.html#bug-fixes mention a
fix to GitLabStatusPush), which would suggest it should be working.
What am I missing?
Thanks,
Kat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170111/86f4de1b/attachment.html>
More information about the users
mailing list