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

Side by Side Diff: third_party/buildbot_8_4p1/README.chromium

Issue 662513003: Add Google Analytics to buildbot pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 URL: http://buildbot.net/trac 1 URL: http://buildbot.net/trac
2 Version: 0.8.4p1 2 Version: 0.8.4p1
3 License: GNU General Public License (GPL) Version 2 3 License: GNU General Public License (GPL) Version 2
4 4
5 This is a forked copy of buildbot v0.8.4p1. 5 This is a forked copy of buildbot v0.8.4p1.
6 6
7 Make hidden steps stay hidden even if not finished, add brDoStepIf 7 Make hidden steps stay hidden even if not finished, add brDoStepIf
8 to support buildrunner. 8 to support buildrunner.
9 9
10 10
(...skipping 4591 matching lines...) Expand 10 before | Expand all | Expand 10 after
4602 if k not in ('stdout', 'stderr', 'header', 'rc'): 4602 if k not in ('stdout', 'stderr', 'header', 'rc'):
4603 @@ -1241,6 +1244,8 @@ class LoggingBuildStep(BuildStep): 4603 @@ -1241,6 +1244,8 @@ class LoggingBuildStep(BuildStep):
4604 4604
4605 if self.log_eval_func: 4605 if self.log_eval_func:
4606 return self.log_eval_func(cmd, self.step_status) 4606 return self.log_eval_func(cmd, self.step_status)
4607 + if getattr(cmd, 'wasTimeout', False): 4607 + if getattr(cmd, 'wasTimeout', False):
4608 + return EXCEPTION 4608 + return EXCEPTION
4609 if cmd.rc != 0: 4609 if cmd.rc != 0:
4610 return FAILURE 4610 return FAILURE
4611 return SUCCESS 4611 return SUCCESS
4612
4613 diff --git a/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.htm l b/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html
4614 index e988807..3a582ef 100644
4615 --- a/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html
4616 +++ b/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html
4617 @@ -60,5 +60,15 @@
4618 Page built: <b>{{ time }}</b> ({{ tz }})
4619 </div>
4620 {% endblock -%}
4621 + <script>
4622 + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function (){
4623 + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElemen t(o),
4624 + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefor e(a,m)
4625 + })(window,document,'script','//www.google-analytics.com/analytics.js','ga ');
4626 +
4627 + ga('create', 'UA-55762617-2', 'auto');
4628 + ga('send', 'pageview');
4629 +
4630 + </script>
4631 </body>
4632 </html>
OLDNEW
« no previous file with comments | « masters/master.client.nacl/templates/layout.html ('k') | third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698