From a4256b11855c9b11b88f26a6a416b65aab47fe56 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Tue, 30 Apr 2019 13:48:25 +0000 Subject: [PATCH] Bug 1547781 - expire try decision artifacts after 28 days r=Callek This ensures that the artifacts an action task might consult will be gone at the same time that the push's tasks expire. Differential Revision: https://phabricator.services.mozilla.com/D29270 --HG-- extra : moz-landing-system : lando --- .taskcluster.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 81c0f8efb23c..95d250d5b699 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -59,6 +59,11 @@ tasks: ownerEmail: {$if: '"@" in push.owner', then: '${push.owner}', else: '${push.owner}@noreply.mozilla.org'} # ensure there's no trailing `/` on the repo URL repoUrl: {$if: 'repository.url[-1] == "/"', then: {$eval: 'repository.url[:-1]'}, else: {$eval: 'repository.url'}} + # expire try earlier than other branches + expires: + $if: 'repository.project == "try"' + then: {$fromNow: '28 days'} + else: {$fromNow: '1 year'} in: taskId: {$if: 'tasks_for != "action"', then: '${ownTaskId}'} taskGroupId: @@ -71,7 +76,7 @@ tasks: created: {$fromNow: ''} deadline: {$fromNow: '1 day'} - expires: {$fromNow: '1 year 1 second'} # 1 second so artifacts expire first, despite rounding errors + expires: {$eval: 'expires'} metadata: $merge: - owner: "${ownerEmail}" @@ -255,7 +260,7 @@ tasks: 'public': type: 'directory' path: '/builds/worker/artifacts' - expires: {$fromNow: '1 year'} + expires: {$eval: expires} extra: $merge: -- 2.11.4.GIT