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

Unified Diff: tools/bots/bot_utils.py

Issue 1647293002: on gcs, move docs for be to builds dir, and dev & stable to dev/stable (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
diff --git a/tools/bots/bot_utils.py b/tools/bots/bot_utils.py
index 53bd1ca4d1cfb47d272e62f113ecb654382de982..1feaf2c136af693a83f85ff4ddff2457d3e39ed9 100644
--- a/tools/bots/bot_utils.py
+++ b/tools/bots/bot_utils.py
@@ -199,13 +199,11 @@ class GCSNamerApiDocs(object):
self.channel = channel
self.bucket = 'gs://dartlang-api-docs'
- def docs_dirpath(self, revision):
- assert len('%s' % revision) > 0
- return '%s/channels/%s/%s' % (self.bucket, self.channel, revision)
-
def dartdocs_dirpath(self, revision):
assert len('%s' % revision) > 0
- return '%s/gen-dartdocs/%s' % (self.bucket, revision)
+ if self.channel == Channel.BLEEDING_EDGE:
+ return '%s/gen-dartdocs/builds/%s' % (self.bucket, revision)
+ return '%s/gen-dartdocs/%s/%s' % (self.bucket, self.channel, revision)
def docs_latestpath(self, revision):
assert len('%s' % revision) > 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698