Bug 1286075: use pushdate from params for docker images; r=garndt
MozReview-Commit-ID: 6m3phQuvche
--- 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],