Bug 1044995 - push_printurls: Also give Treeherder URL for viewing job results; r=hwine
authorEd Morley <emorley@mozilla.com>
Wed, 30 Jul 2014 17:56:48 +0100
changeset 203 52f75a0ae929782bb88c796aa299eafe0c139e1f
parent 202 aac2f70d8ea7973bfa7f834d555730f10ad6a1e5
child 204 62eddffd848dc8617804412e1de0832b3d49e2e7
push id131
push useremorley@mozilla.com
push dateThu, 31 Jul 2014 08:03:59 +0000
reviewershwine
bugs1044995
Bug 1044995 - push_printurls: Also give Treeherder URL for viewing job results; r=hwine
mozhghooks/push_printurls.py
--- a/mozhghooks/push_printurls.py
+++ b/mozhghooks/push_printurls.py
@@ -93,23 +93,27 @@ def hook(ui, repo, node, hooktype, **kwa
     rev = repo.changectx(node).rev()
     tip = repo.changectx('tip').rev()
 
     # For try, print out a TBPL url rather than the pushlog
     if repo_name == 'try':
         tip_node = short(repo.changectx(tip).node())
         print 'You can view the progress of your build at the following URL:'
         print '  https://tbpl.mozilla.org/?tree=Try&rev=%s' % tip_node
+        print 'Alternatively, view them on Treeherder (experimental):'
+        print '  https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=%s' % tip_node
         return 0
 
     # For try-comm-central, print out a TBPL url rather than the pushlog
     if repo_name == 'try-comm-central':
         tip_node = short(repo.changectx(tip).node())
         print 'You can view the progress of your build at the following URL:'
         print '  https://tbpl.mozilla.org/?tree=Thunderbird-Try&rev=%s' % tip_node
+        print 'Alternatively, view them on Treeherder (experimental):'
+        print '  https://treeherder.mozilla.org/ui/#/jobs?repo=thunderbird-try&revision=%s' % tip_node
         return 0
 
     num_changes = tip + 1 - rev
     url = 'https://hg.mozilla.org/' + hgNameToRevURL[repo_name]
 
     if num_changes <= 10:
         plural = 's' if num_changes > 1 else ''
         print 'You can view your change%s at the following URL%s:' % (plural, plural)