[Buildbot-devel] Sending link to specific failed buildstep

Roy S. Rapoport buildbot-devel at ols.inorganic.org
Sun Oct 15 00:08:55 UTC 2006

On Sat, Oct 14, 2006 at 01:22:13PM -0700, Brian Warner wrote:
>  for step in build.getSteps():
>      results, strings = step.getResults()
>      if results == builder.FAILURE:
>          stepname = step.getName()
>          url = self.status.getURLFor(step)
>          text += "step %s failed (%s)\n" % (name, " ".join(strings))
>          text += "see <%s> for details" % url

This worked pretty well.  I had to change builder.FAILURE to FAILURE (we
import FAILURE by name, rather than importing builder) and change getURLFor
to getURLForThing.  

It resulted in including a URL specifically to

which then lets me click on the stdio log.  

Ideally, I'd love to include the link to the stdio log, rather than the
build step -- I could cheat by just appending '/0', but is there a better
way to do that?


More information about the devel mailing list