Merge "Add stdout to indicate expiring runs operations"

This commit is contained in:
Jenkins 2016-04-12 04:32:28 +00:00 committed by Gerrit Code Review
commit 6a00ad755f

View File

@ -106,8 +106,10 @@ def validate_head_file(config):
def expire_old(config, cmd):
expire_age = int(CONF.command.expire_age)
if not CONF.command.no_runs:
print('Expiring old runs.')
db_api.delete_old_runs(expire_age)
if not CONF.command.no_test_runs:
print('Expiring old test_runs')
db_api.delete_old_test_runs(expire_age)