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 359291 1f927bcba52cd0868d06edb2e0388afd44ddd0e8
parent 359290 206a339e7cee23b59d49ab455f6a7cb0979b032a
child 359292 ce75e9da30347850d9ef29cdf5f328ac24aabfde
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
reviewershwine
bugs1044995
Bug 1044995 - push_printurls: Also give Treeherder URL for viewing job results; r=hwine
hghooks/mozhghooks/push_printurls.py
--- a/hghooks/mozhghooks/push_printurls.py
+++ b/hghooks/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)