I have taken over a project and find that old jobs are not discarded which fills up disk space.
As a consequence I have to delete old jobs from time to time.
Jenkins version is 2.190.3.
Is there maybe some particular detail that I might not have considered ?
to show where the disc space is being used, and then investigate the jobs or other data sources that are using that disc space. If all the jobs are configured to discard builds after 3 days, then there may be other issues. In any case, finding the source of high disc use will let you decide your next action.
Thanks,
we have already identified the job that consumes a lot of disk space
and thus we wish Jenkins deleted jobs that are older than 3 days,
but we have found that log rotation does not work.
I’m not aware of any bug report that declares that log rotation does not work. Of course, you’re running a Jenkins version that was released two years ago and has been superseded by multiple releases with security fixes in Jenkins core and likely in the Jenkins plugins that you are using.
You may need to remove the old build logs yourself with file system commands if the build discarder is unable to do it.
also the days of old build only fires when the build is run, so build on day 4 will clean up logs from day 1.
I think the newer version of the plugin and core actually will go do it outside of the build cycle, but not 100% sure on that (I personally use # of builds, so never did a time based cleanup.