Git Product home page Git Product logo

discard-old-build-plugin's Introduction

Discard Old Build plugin

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.

The plugin functions as a post-build action with the below interface used for configuration: Plugin

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. Features are described in detail in the help documentation accessible through the question mark symbols (?) on the user interface.

Discard conditions are executed in the order shown in the UI. The only exception to this is when using Require both quantity and age conditions to be met for build discard. 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.

Case Example #1: 15 builds are present, none of which exceed an age limit of 10 days, with a max build hold of 6.

Outcome: No builds are cleared.

Plugin

Case Example #2: 16 builds exceeding an age limit of 0 days are present, with a max build hold of 6.

Outcome: The 6 most recent builds are kept.

Plugin

Case Example #3: 6 builds exceeding an age limit of 0 days are present, with a max build hold of 7.

Outcome: No builds are deleted.

Plugin

Case Example #4: 0 builds exceeding an age limit of 10 days are present, with a max build hold of 0.

Outcome: No builds are deleted.

Plugin

discard-old-build-plugin's People

Contributors

nkns165 avatar joeyjiao avatar fbelzunc avatar martinda avatar ndeloof avatar benjaminbeggs avatar cosmin-malutan avatar daniel-beck avatar daniel-beck-bot avatar nisarg1499 avatar oleg-nenashev avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.