2016-11-06 03:59:59 +00:00
|
|
|
# DB-like with filesystem
|
|
|
|
|
|
|
|
from buildbot.plugins import util, steps
|
|
|
|
from sumfiles import get_web_base
|
|
|
|
import os
|
|
|
|
|
|
|
|
class SaveGDBResults (steps.MasterShellCommand):
|
|
|
|
name = 'save build results'
|
|
|
|
description = 'saving build results'
|
|
|
|
descriptionDone = 'saved build results'
|
|
|
|
|
|
|
|
def __init__ (self, **kwargs):
|
2016-11-10 06:45:57 +00:00
|
|
|
steps.MasterShellCommand.__init__ (self, command = None, **kwargs)
|
2016-11-06 03:59:59 +00:00
|
|
|
self.command = [ os.path.expanduser ("~/scripts/update-logs.sh"),
|
|
|
|
"--commit", util.Property ('got_revision'),
|
|
|
|
"--builder", util.Property ('buildername'),
|
|
|
|
"--base-directory", get_web_base (),
|
|
|
|
"--branch", util.Property ('branch'),
|
|
|
|
"--is-try-sched", util.Property ('isTrySched',
|
2017-09-05 13:43:15 +00:00
|
|
|
default = 'no'),
|
|
|
|
"--try-count", util.Property ('try_count',
|
|
|
|
default = '0') ]
|