+ job_name = spec.cpta["data"].keys()[0]
+
+ builds_lst = list()
+ for build in spec.input["builds"][job_name]:
+ status = build["status"]
+ if status != "failed" and status != "not found":
+ builds_lst.append(str(build["build"]))
+
+ # Get "build ID": "date" dict:
+ build_dates = dict()
+ for build in builds_lst:
+ try:
+ build_dates[build] = \
+ input_data.metadata(job_name, build)["generated"][:14]
+ except KeyError:
+ pass
+