Bug 1381577 - Part AM; Make sure to properly utilize MOZ_BUILD_DATE in taskcluster windows. r=kmoir
Land date changes to support windows nightlies onto central
MozReview-Commit-ID: DUg6pXQ8OiI
--- a/testing/mozharness/mozharness/mozilla/building/buildbase.py
+++ b/testing/mozharness/mozharness/mozilla/building/buildbase.py
@@ -790,27 +790,26 @@ or run without that action (ie: --no-{ac
return self.builduid
def query_buildid(self):
c = self.config
if self.buildid:
return self.buildid
buildid = None
- if c.get("is_automation"):
- if self.buildbot_config['properties'].get('buildid'):
- self.info("Determining buildid from buildbot properties")
- buildid = self.buildbot_config['properties']['buildid'].encode(
- 'ascii', 'replace'
- )
- else:
- # for taskcluster, there are no buildbot properties, and we pass
- # MOZ_BUILD_DATE into mozharness as an environment variable, only
- # to have it pass the same value out with the same name.
- buildid = os.environ.get('MOZ_BUILD_DATE')
+ if c.get("is_automation") and self.buildbot_config['properties'].get('buildid'):
+ self.info("Determining buildid from buildbot properties")
+ buildid = self.buildbot_config['properties']['buildid'].encode(
+ 'ascii', 'replace'
+ )
+ else:
+ # for taskcluster, there are no buildbot properties, and we pass
+ # MOZ_BUILD_DATE into mozharness as an environment variable, only
+ # to have it pass the same value out with the same name.
+ buildid = os.environ.get('MOZ_BUILD_DATE')
if not buildid:
self.info("Creating buildid through current time")
buildid = generate_build_ID()
if c.get('is_automation') or os.environ.get("TASK_ID"):
self.set_buildbot_property('buildid',
buildid,