One Treeherder page for all try-related branches

This will be effective at https://treeherder.allizom.org/#/jobs?repo=servo-try
once https://github.com/mozilla/treeherder/pull/4371 lands,
and at https://treeherder.mozilla.org/#/jobs?repo=servo-try
after it is deployed.
This commit is contained in:
Simon Sapin 2018-12-13 18:23:53 +01:00
parent 7df2087dc0
commit f3dee856ac

View file

@ -12,7 +12,9 @@ from decisionlib import CONFIG, SHARED
def main(task_for):
assert CONFIG.git_ref.startswith("refs/heads/")
branch = CONFIG.git_ref[len("refs/heads/"):]
CONFIG.treeherder_repository_name = "servo-" + branch
CONFIG.treeherder_repository_name = "servo-" + (
branch if not branch.startswith("try-") else "try"
)
if task_for == "github-push":
# FIXME https://github.com/servo/servo/issues/22325 implement these: