def Summary(repos): buildbot.Step('Summary') info = {'repositories': repos} info['build'] = BUILDBOT_BUILDNUMBER info['scheduler'] = SCHEDULER info_json = json.dumps(info) print info print 'Failed steps: %s.' % buildbot.Failed() with open('latest', 'w+') as f: f.write(info_json) buildbot.Link('latest', cloud.Upload('latest', 'git/latest')) if buildbot.Failed(): buildbot.Fail() else: with open('lkgr', 'w+') as f: f.write(info_json) buildbot.Link('lkgr', cloud.Upload('lkgr', 'git/lkgr'))
def Summary(repos): buildbot.Step('Summary') info = {'repositories': repos} info['build'] = BUILDBOT_BUILDNUMBER info['scheduler'] = SCHEDULER info_json = json.dumps(info, indent=2) print info_json print 'Failed steps: %s.' % buildbot.Failed() for step in buildbot.FailedList(): print ' %s' % step latest_file = os.path.join(WORK_DIR, 'latest') with open(latest_file, 'w+') as f: f.write(info_json) buildbot.Link('latest', cloud.Upload(latest_file, 'git/latest')) if buildbot.Failed(): buildbot.Fail() else: lkgr_file = os.path.join(WORK_DIR, 'lkgr') with open(lkgr_file, 'w+') as f: f.write(info_json) buildbot.Link('lkgr', cloud.Upload(lkgr_file, 'git/lkgr'))
def Archive(name, tar): """Archive the tar file with the given name, and with the LLVM git hash.""" if not BUILDBOT_BUILDERNAME: return git_gs = 'git/wasm-%s-%s.tbz2' % (name, BUILDBOT_BUILDNUMBER) buildbot.Link('download', cloud.Upload(tar, git_gs))