buildbot - New file in template is not accessed -
i trying display results in web page. want link waterfall page of buildbot. when use<a href="link page">click</a>
, required web page not open. have placed new web page in templates directory. there more needs done?
since results want display produced 1 of builds, waterfall web templates not relevant, since templates whole waterfall, including builds, whether or not builds produce these particular results.
if wish provide links files generated build, select buildstep in build, or create 1 purpose, provide links within status box in waterfall display (e.g. in way shellcommand
buildstep provides link stdio
log). example, might add final step build description report or publish.
you must write customized buildstep
class execute step select or create. customized buildstep
class must derived loggingbuildstep
, or class, such shellcommand
, derived loggingbuildstep
.
the necessary customization override createsummary
method own implementation, , in implementation call addurl
method adds url(s) file(s) want publish buildstep's status box. can add many urls like. here outline example:
class reportingstep(shellcommand): ... command = ['upload','report',to','some','server'] ... def createsummary(self,log): ... url = "url/to/the/report/on/the/server" self.addurl("report", url)
now, when reportingstep
completes, status box contain link labelled report
report step has uploaded server.
google "buildbot buildstep createsummary" more leads.
what if files saved locally , want user have link download zipped files? understand, above customization provide external url.
the user clicks link served buildmaster. if build saves these files locally, they're saved on buildslave. unless buildslave on same machine buildmaster link has url "external" file.
on other hand, if buildstep uploads file the buildmaster, link can link local file - local on buildmaster, serving link.
if buildslave is on same machine buildmaster, don't need uploading:
addurl("report",file:///path/to/the/zipfile.zip)
but remember, if want content @ these links persistent /path/to/the/zipfile.zip
had better not somewhere gets clobbered every build.
Comments
Post a Comment