Bug 1303214 - Change Mozharness Taskcluster artifact expiration to 28 days
MozReview-Commit-ID: BbWaeqXIRWT
--- a/testing/mozharness/mozharness/mozilla/taskcluster_helper.py
+++ b/testing/mozharness/mozharness/mozilla/taskcluster_helper.py
@@ -88,17 +88,20 @@ class Taskcluster(LogMixin):
".txt": "text/plain",
".xpi": "application/x-xpinstall",
".zip": "application/zip",
}
return mime_types.get(ext, default)
@property
def expiration(self):
- return datetime.utcnow() + timedelta(weeks=52)
+ weeks = 52
+ if self.buildbot == 'buildbot-try':
+ weeks = 3
+ return datetime.utcnow() + timedelta(weeks=weeks)
def create_artifact(self, task, filename):
mime_type = self.get_mime_type(os.path.splitext(filename)[1])
content_length = os.path.getsize(filename)
self.info("Uploading to S3: filename=%s mimetype=%s length=%s" % (
filename, mime_type, content_length))
# reclaim the task to avoid "claim-expired" errors
self.taskcluster_queue.reclaimTask(