Bug 1286075: use pushdate from params for docker images; r=garndt draft
authorDustin J. Mitchell <dustin@mozilla.com>
Sat, 27 Aug 2016 03:17:55 +0000
changeset 412730 9e5709297310aae00e14ab02cb17e9c1345b653c
parent 412729 5506a6ff9aa9ce00c52b89c4a2cc6b86bf17de61
child 412731 b69531216aa6ed8e8da5135a75acf6b0244539e4
push id29252
push userdmitchell@mozilla.com
push dateMon, 12 Sep 2016 19:16:39 +0000
reviewersgarndt
bugs1286075
milestone51.0a1
Bug 1286075: use pushdate from params for docker images; r=garndt MozReview-Commit-ID: 6m3phQuvche
taskcluster/taskgraph/task/docker_image.py
--- a/taskcluster/taskgraph/task/docker_image.py
+++ b/taskcluster/taskgraph/task/docker_image.py
@@ -33,18 +33,17 @@ class DockerImageTask(base.Task):
         super(DockerImageTask, self).__init__(*args, **kwargs)
 
     def __eq__(self, other):
         return super(DockerImageTask, self).__eq__(other) and \
                self.index_paths == other.index_paths
 
     @classmethod
     def load_tasks(cls, kind, path, config, params, loaded_tasks):
-        # TODO: make this match the pushdate (get it from a parameter rather than vcs)
-        pushdate = time.strftime('%Y%m%d%H%M%S', time.gmtime())
+        pushdate = time.strftime('%Y%m%d%H%M%S', time.gmtime(params['pushdate']))
 
         parameters = {
             'pushlog_id': params.get('pushlog_id', 0),
             'pushdate': pushdate,
             'pushtime': pushdate[8:],
             'year': pushdate[0:4],
             'month': pushdate[4:6],
             'day': pushdate[6:8],