Jenkins – how to delete old builds

Jenkins supports deleting old builds for a project by days or maxium number of builds to keeps. This is useful to keep disk usage under control. Here are steps to setting up auto delete old beuild in Jenkins project.

  1. Open Jenkins project and click on configure to open configuration screen for the project.
  2. Locate the discard old builds checkbox.
  3. Select discard old builds checkbox to see more options. Type number of days to 10 or any other desired value. Alternatively you can also choose maximum numbers of builds to keep. Click save once done.
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments