From 2dc46e41e8f4f9039601a54869503b198619fba5 Mon Sep 17 00:00:00 2001 From: Tim Flink Date: Thu, 3 Jan 2019 23:43:16 +0000 Subject: [PATCH] fixing the taskotron-clean cronjob to use variables --- .../taskotron-master/templates/taskotron-clean.cron.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/taskotron/taskotron-master/templates/taskotron-clean.cron.j2 b/roles/taskotron/taskotron-master/templates/taskotron-clean.cron.j2 index 8a291e4c59..b9a375c313 100644 --- a/roles/taskotron/taskotron-master/templates/taskotron-clean.cron.j2 +++ b/roles/taskotron/taskotron-master/templates/taskotron-clean.cron.j2 @@ -1,4 +1,4 @@ -0 0 * * * {{ buildmaster_user }} find {{ public_artifacts_dir }} -type d -mtime +120 | xargs -r rm -rf -10 0 * * * {{ buildmaster_user }} find {{ buildmaster_dir }}/x86_64/ -mtime +120 | xargs -r rm -rf -20 0 * * * {{ buildmaster_user }} find {{ buildmaster_dir }}/i386/ -mtime +120 | xargs -r rm -rf -30 0 * * * {{ buildmaster_user }} find {{ buildmaster_dir }}/all/ -mtime +120 | xargs -r rm -rf +0 0 * * * {{ buildmaster_user }} find {{ public_artifacts_dir }} -type d -mtime +{{ artifacts_max_life }} | xargs -r rm -rf +10 0 * * * {{ buildmaster_user }} find {{ buildmaster_dir }}/x86_64/ -mtime +{{ buildmaster_max_life }} | xargs -r rm -rf +20 0 * * * {{ buildmaster_user }} find {{ buildmaster_dir }}/i386/ -mtime +{{ buildmaster_max_life }} | xargs -r rm -rf +30 0 * * * {{ buildmaster_user }} find {{ buildmaster_dir }}/all/ -mtime +{{ buildmaster_max_life }} | xargs -r rm -rf