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

Delete archived artifacts of past builds, except promoted ones

    Details

    • Similar Issues:

      Description

      At the moment, it is only possible to archive artifacts for all builds, to just keep the artifacts of the last build or to customize how long to keep artifacts, but without considering the builds' state (a state marks the quality of the build, a state is not a metric for ordering like "number of builds" or "days").

      Issue: the granularity is not sufficient. Keeping all artifacts can be too much especially if your artifacts are big. Only keeping the last artifacts is too little, if you are interested in more builds than just the last ones and if you are interested in an advanced selection of what artifacts to keep.

      A feature would be very helpful to keep more builds, builds which are signed to be kept. A candidate would be a mixture with respectively a new feature of the "promotion plugin".

      Possible solution: in the Post-build actions configuring "Archive the artifacts", if checked, add another configuration/checkbox "Delete all builds not promoted so far" in combination with a button on the UI "Delete all artifacts of past builds that are not promoted until now". The delete button is only visible if the checkbox was checked during configuration.

      Possible solution light: just add the delete artifacts button as soon as artifacts are archived and the promotion plugin is in place.

        Attachments

          Issue Links

            Activity

            michaelhuettermann Michael Hüttermann created issue -
            michaelhuettermann Michael Hüttermann made changes -
            Field Original Value New Value
            Description At the moment, it is only possible to archive artifacts for all builds or to just keep the artifacts of the last build. Additionally, there is the checkbox "Discard all but the last successful/stable artifact to save disk space".

            Issue: the granularity is not sufficient. Keeping all artifacts can be too much especially if your artifacts are big. Only keeping the last artifacts is too little, if you are interested in more builds than just the last one.

            A feature would be very helpful to keep more builds, builds which are signed to be kept. A candidate would be a mixture with respectively a new feature of the "promotion plugin".

            Possible solution: in the Post-build actions configuring "Archive the artifacts", if checked, add another configuration/checkbox "Delete all builds not promoted so far" in combination with a button on the UI "Delete all artifacts of past builds that are not promoted until now". The delete button is only visible if the checkbox was checked during configuration.

            Possible solution light: just add the delete artifacts button as soon as artifacts are archived and the promotion plugin is in place.
            At the moment, it is only possible to archive artifacts for all builds, to just keep the artifacts of the last build or to customize how long to keep artifacts, but without considering the builds' state.

            Issue: the granularity is not sufficient. Keeping all artifacts can be too much especially if your artifacts are big. Only keeping the last artifacts is too little, if you are interested in more builds than just the last ones and if you are interested in an advanced selection of what artifacts to keep.

            A feature would be very helpful to keep more builds, builds which are signed to be kept. A candidate would be a mixture with respectively a new feature of the "promotion plugin".

            Possible solution: in the Post-build actions configuring "Archive the artifacts", if checked, add another configuration/checkbox "Delete all builds not promoted so far" in combination with a button on the UI "Delete all artifacts of past builds that are not promoted until now". The delete button is only visible if the checkbox was checked during configuration.

            Possible solution light: just add the delete artifacts button as soon as artifacts are archived and the promotion plugin is in place.
            michaelhuettermann Michael Hüttermann made changes -
            Description At the moment, it is only possible to archive artifacts for all builds, to just keep the artifacts of the last build or to customize how long to keep artifacts, but without considering the builds' state.

            Issue: the granularity is not sufficient. Keeping all artifacts can be too much especially if your artifacts are big. Only keeping the last artifacts is too little, if you are interested in more builds than just the last ones and if you are interested in an advanced selection of what artifacts to keep.

            A feature would be very helpful to keep more builds, builds which are signed to be kept. A candidate would be a mixture with respectively a new feature of the "promotion plugin".

            Possible solution: in the Post-build actions configuring "Archive the artifacts", if checked, add another configuration/checkbox "Delete all builds not promoted so far" in combination with a button on the UI "Delete all artifacts of past builds that are not promoted until now". The delete button is only visible if the checkbox was checked during configuration.

            Possible solution light: just add the delete artifacts button as soon as artifacts are archived and the promotion plugin is in place.
            At the moment, it is only possible to archive artifacts for all builds, to just keep the artifacts of the last build or to customize how long to keep artifacts, but without considering the builds' state (a state marks the quality of the build, a state is not a metric for ordering like "number of builds" or "days").

            Issue: the granularity is not sufficient. Keeping all artifacts can be too much especially if your artifacts are big. Only keeping the last artifacts is too little, if you are interested in more builds than just the last ones and if you are interested in an advanced selection of what artifacts to keep.

            A feature would be very helpful to keep more builds, builds which are signed to be kept. A candidate would be a mixture with respectively a new feature of the "promotion plugin".

            Possible solution: in the Post-build actions configuring "Archive the artifacts", if checked, add another configuration/checkbox "Delete all builds not promoted so far" in combination with a button on the UI "Delete all artifacts of past builds that are not promoted until now". The delete button is only visible if the checkbox was checked during configuration.

            Possible solution light: just add the delete artifacts button as soon as artifacts are archived and the promotion plugin is in place.
            brian_harris Brian Harris made changes -
            Link This issue is related to JENKINS-8689 [ JENKINS-8689 ]
            petehayes Peter Hayes made changes -
            Link This issue is related to JENKINS-8392 [ JENKINS-8392 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 136259 ] JNJira + In-Review [ 174473 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                michaelhuettermann Michael Hüttermann
              • Votes:
                7 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: