I am running Buildbot version 0.8.8 on Windows7.
I have the configuration (master.cfg
) file which creates all the builders using a small trick. I read a XML file from the subversion which lists all the steps for the builders. Something like:
<Builder name="BuilderA" description="Builds the A project">
<Command name="Clean">-v -t realclean -p my\\projA</Command>
<Command name="Release">-v -t release -p my\\projA</Command>
</Builder>
<Builder name="BuilderB" description="Builds the B project">
<Command name="Clean">-v -t realclean -p my\\projB</Command>
<Command name="Release">-v -t release -p my\\projB</Command>
</Builder>
The idea is that any developer can change the XML file in the subversion and then buildmaster could be restarted in order to have the new buildbot configuration.
I start the buildbot using the command: buildbot start C:\master_dir
The issue I am facing is that when I am trying to restart
the buildbot it complains that buildmaster not running. Digging deep into the sources I found that it fails in buildbot\scripts\stop.py:34
when trying to open the twisted.pid
file.
pidfile = os.path.join(basedir, 'twistd.pid')
try:
with open(pidfile, "rt") as f:
pid = int(f.read().strip())
except:
if not config['quiet']:
print "buildmaster not running"
return 0
I have no idea what is this twisted.pid
file and why buildbot is looking for this? Any help or ideas will be appreciated. Thanks.