Bug 1279016 - dont query_post_upload_cmd env var if not in buildbot infra, r?pmoore
MozReview-Commit-ID: 64kfVx0ew9K
--- 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: