Beispiel #1
0
func (p *reverseBuildletPool) cleanedBuildlet(b *buildlet.Client, el eventTimeLogger) (*buildlet.Client, error) {
	el.logEventTime("got_machine", b.String())
	// Clean up any files from previous builds.
	if err := b.RemoveAll("."); err != nil {
		b.Close()
		return nil, err
	}
	el.logEventTime("cleaned_up", b.Name())
	return b, nil
}
Beispiel #2
0
func destroyCloseBuildlet(bc *buildlet.Client) {
	bc.Destroy()
	bc.Close()
}