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

Promoted builds archives are not deleted

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Issue Links

            Activity

            Hide
            crussell52 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.

            Show
            crussell52 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.
            Hide
            kewob Karl Brown added a comment -

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

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

              People

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

                Dates

                • Created:
                  Updated: