This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container griddashboard"> | |
<style> | |
/* only modify th from this dashboard! */ | |
.griddashboard table th { | |
font-size 24pt; | |
} | |
</style> | |
<!-- Create a table of builds organised by builders/revisions in columns --> | |
<table class="table table-hover table-striped table-condensed"> | |
<tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import absolute_import | |
from __future__ import print_function | |
import os | |
from buildbot.process.results import statusToString | |
from flask import Flask | |
from flask import render_template | |
griddashboardapp = Flask('grid', root_path=os.path.dirname(__file__)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from buildbot.plugins import reporters | |
c['services'] = [] | |
from_addr = "do_not_reply.buildbotsunrise@company.com" | |
smtp_host = "mail.company.com" | |
# email notifier for all builds only to admin | |
all_mail_notifier = reporters.MailNotifier( | |
fromaddr=from_addr, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# does not upload subdirectory within platform + "_bin" directory | |
directory_upload = steps.DirectoryUpload( | |
workersrc=platform + "_bin", | |
masterdest=util.WithProperties(masterdest_url, "date", "got_revision"), | |
description="uploading directory", | |
workdir=working_dir, descriptionDone="directory uploaded", | |
url=util.WithProperties(url, "date", "got_revision"), alwaysRun=True) | |
# it uploads subdirectory within platform + "_bin" directory | |
workersrcs = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def make_tarfile(output_filename, source_dir): | |
with tarfile.open(output_filename, "w:gz") as tar: | |
tar.add(source_dir, arcname=os.path.basename(source_dir)) |