Bug 1279016 - dont query_post_upload_cmd env var if not in buildbot infra, r?pmoore draft
authorJordan Lund <jlund@mozilla.com>
Tue, 14 Jun 2016 14:40:26 +0100
changeset 378065 def40df308d36fae99af2d11fedf37ef8c28dc00
parent 378064 75285ea7e4aae8fb7d239f58a97390d17fbff9bb
child 523458 c19485a65e53e6e784950f65b3d088f28b877e2a
push id20926
push userjlund@mozilla.com
push dateTue, 14 Jun 2016 13:40:57 +0000
reviewerspmoore
bugs1279016
milestone50.0a1
Bug 1279016 - dont query_post_upload_cmd env var if not in buildbot infra, r?pmoore MozReview-Commit-ID: 64kfVx0ew9K
testing/mozharness/mozharness/mozilla/building/buildbase.py
--- a/testing/mozharness/mozharness/mozilla/building/buildbase.py
+++ b/testing/mozharness/mozharness/mozilla/building/buildbase.py
@@ -918,18 +918,19 @@ or run without that action (ie: --no-{ac
 
         if self.query_is_nightly():
             mach_env['LATEST_MAR_DIR'] = c['latest_mar_dir'] % {
                 'branch': self.branch
             }
 
         # _query_post_upload_cmd returns a list (a cmd list), for env sake here
         # let's make it a string
-        pst_up_cmd = ' '.join([str(i) for i in self._query_post_upload_cmd(multiLocale)])
-        mach_env['POST_UPLOAD_CMD'] = pst_up_cmd
+        if c.get('is_automation'):
+            pst_up_cmd = ' '.join([str(i) for i in self._query_post_upload_cmd(multiLocale)])
+            mach_env['POST_UPLOAD_CMD'] = pst_up_cmd
 
         return mach_env
 
     def _compile_against_pgo(self):
         """determines whether a build should be run with pgo even if it is
         not a classified as a 'pgo build'.
 
         requirements: