InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Jenkis

  • Install Jenkins on Linux
  • Clone a project
  • Setup build failure email
  • Setup build cron
  • Shell - how to continue on error
  • Delete old builds
 
  • Home
  • > Tutorials
  • > CI
  • > Jenkins

Jenkins – how to delete old builds

on Mar 22, 2016

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.
    jenkins-project-setting-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.
    jenkins-discard-old-builds-settings

Suggested posts:

  1. Jenkins – how to setup build failure email
  2. PHP – preg_replace back reference (in replacement text) examples
  3. Python selenium – print browser log (including javascript errors) with phantomjs
  4. Bash – variables in double quotes vs without quotes
  5. Selenium Phantomjs – check browser errors using pytest
  6. AngularJS format date using date filter
  7. HTML input checkbox
  8. wget handy commands
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged CI, Jenkins, Linux, Tutorials, Ubuntu Linux
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress