[Buildbot-devel] Adding Links to buildbot status pages

nikunj badjatya nikunjbadjatya at gmail.com
Wed Mar 24 05:24:40 UTC 2010


Hi all,
I am a fresh graduate software engineer. Recently started to use Buildbot.
(version 0.7.12, Using CentOS 5.4, Python 2.6, Twisted and Zope interface
are also installed )

I came across a situation wherein it is required to add custom html links to
buildbot status html pages.
Like for ex. When I click on any build no. to see its log files and steps,
it shows a page containing
Steps and Logfiles:

   1. cvs <http://localhost:8010/builders/buildbot-full/builds/13/steps/cvs>[update]
[4 seconds]
      1. stdio<http://localhost:8010/builders/buildbot-full/builds/13/steps/cvs/logs/stdio>
   2. compile<http://localhost:8010/builders/buildbot-full/builds/13/steps/compile>[compile]
[3 seconds]
      1. stdio<http://localhost:8010/builders/buildbot-full/builds/13/steps/compile/logs/stdio>
   3. trial<http://localhost:8010/builders/buildbot-full/builds/13/steps/trial>[testlog
unparseable] [0 seconds]
      1. stdio<http://localhost:8010/builders/buildbot-full/builds/13/steps/trial/logs/stdio>
      2. test.log<http://localhost:8010/builders/buildbot-full/builds/13/steps/trial/logs/test.log>
      3. problems<http://localhost:8010/builders/buildbot-full/builds/13/steps/trial/logs/problems>

etc etc..

I want to add a *webpage link* under " compile " or " trial " .

I tried using addURL method of BuildStep class in buildstep module in
directory
/buildbot-0.7.12-py2.6.egg/buildbot/process/buildstep.py

In the master.cfg file I added :
*from buildbot.process.buildstep import BuildStep
f1.addStep(BuildStep.addURL( "detailed results",
"/home/..../Main-page.html"))*


It flags an error saying that the first argument should not be string.!!


Kindly help!

Thanks,

Nikunj
BTech
Software Engineer @ Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100324/9edb396b/attachment.html>


More information about the devel mailing list