<div dir="ltr">


        
        
        
        


<p>Hi all,</p>
<p>I’m having trouble getting GitLabStatusPush working, and I’m
hoping someone can help.</p>
<p>I’m using Buildbot 0.9.2.</p>
<p>I’ve added the following lines to my master.cfg, copy-pasted
from
<a href="http://docs.buildbot.net/current/manual/cfg-reporters.html#gitlabstatuspush">http://docs.buildbot.net/current/manual/cfg-reporters.html#gitlabstatuspush</a>
(I realise I need to change the arguments to my token, base URL, etc.
- that’s not the problem):</p>
<pre class="gmail-western"><font color="#000000"><span style="font-weight:normal"><span style="background:rgb(228,228,255) none repeat scroll 0% 0%">c</span></span></font><font color="#000000"><span style="font-weight:normal">['services'] = []</span></font>
from buildbot.plugins import reporters
gl = reporters.GitLabStatusPush('private-token', context='continuous-integration/buildbot', baseUrl='<a href="https://git.yourcompany.com">https://git.yourcompany.com</a>')
c['services'].append(gl)</pre><p>
But it fails to pass ‘checkconfig’ with the following errors:</p>
<pre class="gmail-western">$ 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='<a href="https://git.yourcompany.com">https://git.yourcompany.com</a>')
  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)
</pre><p>
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).</p>
<p>Why can’t it find the module?</p>
<p>I’ve found this ticket <a href="http://trac.buildbot.net/ticket/3286">http://trac.buildbot.net/ticket/3286</a>
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
(<a href="http://docs.buildbot.net/current/relnotes/0.9.0b9.html#features">http://docs.buildbot.net/current/relnotes/0.9.0b9.html#features</a>),
and the release notes for 0.9.2
(<a href="http://docs.buildbot.net/current/relnotes/index.html#bug-fixes">http://docs.buildbot.net/current/relnotes/index.html#bug-fixes</a>
mention a fix to GitLabStatusPush), which would suggest it should be
working.</p>
<p>What am I missing?</p>
<p>Thanks,</p>
<p>Kat</p></div>