[Buildbot-devel] Catching an exception when a slave is expected to disconnect

Ben Clifford benc at hawaga.org.uk
Thu Jun 2 17:34:51 UTC 2011


I made an ssh latent build slave which shuts down after every build.

  def buildFinished(self, *args, **kwargs):
    """
    I insubstantiate a slave after it has done a build, if that is
    desired behaviour.
    """
    AbstractLatentBuildSlave.buildFinished(self, *args, **kwargs)
    log.msg("Got buildFinished notification - attempting to 
insubstantiate")
    self.insubstantiate()

I wonder if you can use a technique like that with a regular build slave 
to do a shut down after each build, and have a containing process on the 
slave host that launches the buildslave on system boot and then reboots as 
soon as the buildslave exits.

I'm not really sure but it sounds vaguely similar (though also clearly 
very different) to what I did.

Ben

-- 
http://www.hawaga.org.uk/ben/





More information about the devel mailing list