Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11432

Ability to exclude promoted builds from "Discard all but the last successful artifacts"

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • promoted-builds-plugin
    • None
    • Jenkins 1.414, Promoted Builds Plug-in 2.3.1.

      I would like to use the "Discard all but the last successful artifacts" feature to save disk space. However, there are special promoted builds (via the Promoted Builds plug-in), and I want these to always be preserved no matter what.

      It would be great if I had the option to exclude promoted builds from the "Discard all", in other words, "Discard all but the last successful artifacts AND artifacts from promoted builds."

          [JENKINS-11432] Ability to exclude promoted builds from "Discard all but the last successful artifacts"

          Jamie Webb added a comment -

          Can't you just add 'Keep build forever' as a promotion action?

          Jamie Webb added a comment - Can't you just add 'Keep build forever' as a promotion action?

          msolnit added a comment -

          Aha! I hadn't noticed this option. Thanks .

          msolnit added a comment - Aha! I hadn't noticed this option. Thanks .

          Jose Sa added a comment -

          The problem is there isn't an option to cleanup the builds that are "kept forever", like keeping only that last 3 promotions

          Jose Sa added a comment - The problem is there isn't an option to cleanup the builds that are "kept forever", like keeping only that last 3 promotions

            Unassigned Unassigned
            msolnit msolnit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: