Index: tools/gardening/lib/src/buildbot_structures.dart |
diff --git a/tools/gardening/lib/src/buildbot_structures.dart b/tools/gardening/lib/src/buildbot_structures.dart |
index c9bb0b511f0b48aeae56c0860ce4eab0d6cbb13c..c4fda31070a437dc2d34ba7c0824fe66ea2f9ff9 100644 |
--- a/tools/gardening/lib/src/buildbot_structures.dart |
+++ b/tools/gardening/lib/src/buildbot_structures.dart |
@@ -23,6 +23,14 @@ class BuildUri { |
return new BuildUri.fromData(botName, buildNumber, stepName); |
} |
+ factory BuildUri.fromUrl(String url) { |
+ if (!url.endsWith('/text')) { |
+ // Use the text version of the stdio log. |
+ url += '/text'; |
+ } |
+ return new BuildUri(Uri.parse(url)); |
+ } |
+ |
factory BuildUri.fromData(String botName, int buildNumber, String stepName) { |
return new BuildUri.internal('https', 'build.chromium.org', |
'/p/client.dart', botName, buildNumber, stepName, 'stdio/text'); |