Skip to content

Commit

Permalink
Add a link to the buildslave page in the missing slave email.
Browse files Browse the repository at this point in the history
Fixes #344.
  • Loading branch information
tomprince committed Sep 27, 2012
1 parent 498375d commit 1f8139e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions master/buildbot/buildslave.py
Expand Up @@ -326,6 +326,8 @@ def _missing_timer_fired(self):
text += "Sincerely,\n"
text += " The Buildbot\n"
text += " %s\n" % status.getTitleURL()
text += "\n"
text += "%s\n" % status.getURLForThing(self.slave_status)
subject = "Buildbot: buildslave %s was lost" % self.slavename
return self._mail_missing_message(subject, text)

Expand Down
5 changes: 5 additions & 0 deletions master/buildbot/status/master.py
Expand Up @@ -160,6 +160,11 @@ def getURLForThing(self, thing):
# IBuildSetStatus
# IBuildRequestStatus
# ISlaveStatus
if interfaces.ISlaveStatus.providedBy(thing):
slave = thing
return prefix + "buildslaves/%s" % (
urllib.quote(slave.getName(), safe=''),
)

# IStatusEvent
if interfaces.IStatusEvent.providedBy(thing):
Expand Down

0 comments on commit 1f8139e

Please sign in to comment.