{"componentChunkName":"component---src-templates-plugin-documentation-jsx","path":"/discard-old-build/","result":{"data":{"jenkinsPlugin":{"id":"308c3938-458b-5e8b-a522-9935ce146d4e","gav":"jp.shiftinc.jenkins.plugins:discard-old-build:1.08","hasBomEntry":false,"title":"Discard Old Build","url":"https://updates.jenkins.io/download/plugins/discard-old-build/1.08/discard-old-build.hpi","version":"1.08","wiki":{"childHtmlRehype":{"html":"<div id=\"plugin-content-readme\" class=\"md\" data-path=\"README.md\">\n <article class=\"markdown-body entry-content container-lg\" itemprop=\"text\">\n  <div class=\"markdown-heading\" dir=\"auto\">\n   \n  </div> \n  <p dir=\"auto\">Discard Old Build is a Jenkins plugin that allows for setting build discard conditions with greater specificity than is available in the Jenkin's core function. It is recommended that users carefully test plugin configurations before implementing in important projects to avoid any plugin misconfigurations producing unwanted build history discards.</p> \n  <p dir=\"auto\">The plugin functions as a post-build action with the below interface used for configuration: <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/jenkinsci/discard-old-build-plugin/blob/master/interface.png\"><img src=\"https://cdn.jsdelivr.net/gh/jenkinsci/discard-old-build-plugin@master/interface.png\" alt=\"Plugin\" style=\"max-width: 100%;\"></a></p> \n  <p dir=\"auto\">The configuration settings allow for builds to be discarded based on age, quantity, intervals of these properties, status, logfile size and expressions parsed from logfiles. <strong>Features are described in detail in the help documentation accessible through the question mark symbols (?) on the user interface.</strong></p> \n  <p dir=\"auto\">Discard conditions are executed in the order shown in the UI. The only exception to this is when using <em>Require both quantity and age conditions to be met for build discard</em>. Example case uses of this particular feature are given below. Case examples were performed using all default plugin settings, with the aforementioned feature enabled with max days and max build quantity values set.</p> \n  <p dir=\"auto\"><em><strong>Case Example #1:</strong></em> 15 builds are present, none of which exceed an age limit of 10 days, with a max build hold of 6.</p> \n  <p dir=\"auto\"><em>Outcome:</em> No builds are cleared.</p> \n  <p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/jenkinsci/discard-old-build-plugin/blob/master/case1.png\"><img src=\"https://cdn.jsdelivr.net/gh/jenkinsci/discard-old-build-plugin@master/case1.png\" alt=\"Plugin\" style=\"max-width: 100%;\"></a></p> \n  <p dir=\"auto\"><em><strong>Case Example #2:</strong></em> 16 builds exceeding an age limit of 0 days are present, with a max build hold of 6.</p> \n  <p dir=\"auto\"><em>Outcome:</em> The 6 most recent builds are kept.</p> \n  <p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/jenkinsci/discard-old-build-plugin/blob/master/case2.png\"><img src=\"https://cdn.jsdelivr.net/gh/jenkinsci/discard-old-build-plugin@master/case2.png\" alt=\"Plugin\" style=\"max-width: 100%;\"></a></p> \n  <p dir=\"auto\"><em><strong>Case Example #3:</strong></em> 6 builds exceeding an age limit of 0 days are present, with a max build hold of 7.</p> \n  <p dir=\"auto\"><em>Outcome:</em> No builds are deleted.</p> \n  <p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/jenkinsci/discard-old-build-plugin/blob/master/case3.png\"><img src=\"https://cdn.jsdelivr.net/gh/jenkinsci/discard-old-build-plugin@master/case3.png\" alt=\"Plugin\" style=\"max-width: 100%;\"></a></p> \n  <p dir=\"auto\"><em><strong>Case Example #4:</strong></em> 0 builds exceeding an age limit of 10 days are present, with a max build hold of 0.</p> \n  <p dir=\"auto\"><em>Outcome:</em> No builds are deleted.</p> \n  <p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/jenkinsci/discard-old-build-plugin/blob/master/case4.png\"><img src=\"https://cdn.jsdelivr.net/gh/jenkinsci/discard-old-build-plugin@master/case4.png\" alt=\"Plugin\" style=\"max-width: 100%;\"></a></p> \n </article>\n</div>","rehypeTOC":[]},"url":"https://github.com/jenkinsci/discard-old-build-plugin"},"stats":{"currentInstalls":5226,"currentInstallPercentage":2.5522313710551763,"installations":[{"timestamp":1717200000000,"total":6693,"percentage":2.370949229875448},{"timestamp":1719792000000,"total":6757,"percentage":2.3625874125874127},{"timestamp":1722470400000,"total":6669,"percentage":2.3486694746925494},{"timestamp":1725148800000,"total":6602,"percentage":2.383169810775884},{"timestamp":1727740800000,"total":6634,"percentage":2.352106933290787},{"timestamp":1730419200000,"total":6478,"percentage":2.3138523963624156},{"timestamp":1733011200000,"total":6255,"percentage":2.3492869510349257},{"timestamp":1735689600000,"total":6428,"percentage":2.403215253762034},{"timestamp":1738368000000,"total":6486,"percentage":2.3842432619212164},{"timestamp":1740787200000,"total":6444,"percentage":2.292846773504882},{"timestamp":1743465600000,"total":6384,"percentage":2.2786328203078154},{"timestamp":1746057600000,"total":5226,"percentage":2.5522313710551763}],"trend":2736},"sha1":"UwWWq+bG9xxwiwqV/TNl/TgR9IE=","deprecationNotice":null,"securityWarnings":[],"issueTrackers":[{"reportUrl":"https://github.com/jenkinsci/discard-old-build-plugin/issues/new/choose","type":"github","viewUrl":"https://github.com/jenkinsci/discard-old-build-plugin/issues"}],"scm":"https://github.com/jenkinsci/discard-old-build-plugin","hasPipelineSteps":false,"hasExtensions":false,"requiredCore":"2.479.1","releaseTimestamp":"2025-02-03T18:36:45.00Z","previousVersion":"1.07","previousTimestamp":"2022-12-14T18:19:09.00Z","name":"discard-old-build","labels":["adopt-this-plugin","post-build"],"developers":[{"id":"markewaite","name":"Mark Waite"}],"firstRelease":"2013-01-27T10:30:35.000Z","excerpt":"Discard older builds based on additional critera like build log size / build status / build age / build intervals / build counts / and build log regular expression.","buildDate":"2025-02-03T00:00:00.000Z","dependencies":[]}},"pageContext":{"name":"discard-old-build"}},"staticQueryHashes":["443252636","734486537","810784101"],"slicesMap":{}}