When we archive builds using the promoted builds plug-in, and set a limit in the job to save for example 10 builds, only 10 "promotions" show up in the UI.

      However, on disk, all of the previously promoted builds remain. This can lead to eating up the disk space, and it's invisible to the user who only sees the last 10 builds in the UI (and thus thinks they are being deleted)

      Is there a work-around?

          [JENKINS-28959] Promoted builds archives are not deleted

          Chris Russell added a comment - - edited

          I found a work-around to this.

          From your project, click "Promotion Status" from the left nav. On the next page, the name of the promotion job will be a link. Clicking that will take you to the underlying jenkins job for the promotion job. If you go into the configuration screen for it, you can set "Discard old builds".

          The next time the promotion is ran, it will clean up old builds.

          Chris Russell added a comment - - edited I found a work-around to this. From your project, click "Promotion Status" from the left nav. On the next page, the name of the promotion job will be a link. Clicking that will take you to the underlying jenkins job for the promotion job. If you go into the configuration screen for it, you can set "Discard old builds". The next time the promotion is ran, it will clean up old builds.

          Karl Brown added a comment -

          Hi Chris. This work-around worked for me, thanks so much.

          Karl Brown added a comment - Hi Chris. This work-around worked for me, thanks so much.

            Unassigned Unassigned
            kewob Karl Brown
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: