[Buildbot-devel] Adding Links to buildbot status pages

naman jain namanvit at gmail.com
Tue Mar 30 09:32:09 UTC 2010


If this could help..

class Yourstep(ShellCommand):

        def __init__(self,**kwargs):
             ShellCommand.__init__(self,**kwargs)

        def createSummary(self,log):
             revno = self.getProperty("revision")
             report_url = "http://10.xx.xx.xxx/%s/OUTPUT/" %(revno)
             log_url = "http://10.xx.xx.xxx/%s/LOGS/" % revno
             self.addURL("reports", report_url)
             self.addURL("log",log_url)


2010/3/25 Benoît Allard <benoit at aeteurope.nl>

> nikunj badjatya wrote:
>
>> Hi Tom,
>> Thanks a lot for your reply..!
>>
>> I tried the way you told..Its again giving me same error.
>> *"self.step_status.addURL(name, url)
>>        exceptions.AttributeError: 'NoneType' object has no attribute
>> 'addURL' "*
>>
>> Here are my lines in master.cfg
>>
>> *p = CVS( )                                   #Tried with BuildStep( )
>> also
>>
>> p.addURL("detailed results", "/home/...../Main-page.html")
>> f1.addStep(p)*
>>
>>
> As the error message says, it's too early to add an URL, there is no
> step_status yet as the step has not been run yet.
>
> As Tom also said, my best guess is that you will have to subclass the Step
> on which you are trying to add an URL, to be able to customize it, there,
> you will just have to add your "self.addURL(name, url)" at the end of the
> step, when the webpage you are trying to link to is ready and makes sense.
>
> Regards,
> Benoit
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100330/93a97dce/attachment.html>


More information about the devel mailing list