Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust notifications #82

Merged
merged 1 commit into from
Mar 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ c['configurators'] = [util.JanitorConfigurator(
c['workers'] = WORKERS

# repo url, buildbot category name, git branch name
CUSTOM_BRANCH_NAME = "custom"
git_branches = [
(GIT_URL, "3.x", "master"),
(GIT_URL, "3.7", "3.7"),
(GIT_URL, "3.6", "3.6"),
(GIT_URL, "2.7", "2.7"),
(GIT_URL, "custom", "buildbot-custom"),
(GIT_URL, CUSTOM_BRANCH_NAME, "buildbot-custom"),
# Add the following line if you want to clean up a particular
# buildworker branch (here "3.4")
# XXX Make this work again...
Expand Down Expand Up @@ -323,9 +324,12 @@ for git_url, branchname, git_branch in git_branches:
dailybuildernames.append(buildername)
else:
buildernames.append(buildername)
if stability == STABLE:
# disable notifications on custom builders
if branchname != CUSTOM_BRANCH_NAME:
mail_status_builders.append(buildername)
github_status_builders.append(buildername)
# disable GitHub notifications for unstable builders
if stability == STABLE:
github_status_builders.append(buildername)
c['builders'].append(
util.BuilderConfig(
name=buildername,
Expand All @@ -343,7 +347,7 @@ for git_url, branchname, git_branch in git_branches:
)
# Make sure daily builders pick up custom jobs, and don't try to run when
# the custom branch doesn't exist
if git_branch == 'buildbot-custom':
if branchname == CUSTOM_BRANCH_NAME:
buildernames.extend(dailybuildernames)
dailybuildernames = []
c['schedulers'].append(SingleBranchScheduler(
Expand Down