Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: firefighter/update/common/buildbot/network.py

Issue 2400053002: Use CBE for firefighter (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: firefighter/update/common/buildbot/network.py
diff --git a/firefighter/update/common/buildbot/network.py b/firefighter/update/common/buildbot/network.py
index 7eee6d3939f620e30ac33439e701c1e9472aa5f1..65bd6474777b21ae52f1bc183a17c335ec29032d 100644
--- a/firefighter/update/common/buildbot/network.py
+++ b/firefighter/update/common/buildbot/network.py
@@ -11,8 +11,13 @@ from google.appengine.runtime import apiproxy_errors
from base import constants
-def BuildUrl(master_name, url):
- return '%s/%s/%s' % (constants.BUILDBOT_BASE_URL, master_name, url)
+def BuildUrl(master_name, url, use_cbe=False):
+ base = constants.BUILDBOT_BASE_URL
+ if use_cbe:
+ base = constants.CBE_BASE_URL + '/p'
+ url += '?json=1'
+
+ return '%s/%s/%s' % (base, master_name, url)
def FetchData(url):
« firefighter/update/common/buildbot/builds.py ('K') | « firefighter/update/common/buildbot/builds.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698