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

Delete archived artifacts of past builds, except promoted ones

      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.

          [JENKINS-6166] Delete archived artifacts of past builds, except promoted ones

          Michael Hüttermann created issue -
          Michael Hüttermann made changes -
          Description Original: 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.
          New: 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.
          Michael Hüttermann made changes -
          Description Original: 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.
          New: 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 made changes -
          Link New: This issue is related to JENKINS-8689 [ JENKINS-8689 ]
          Peter Hayes made changes -
          Link New: This issue is related to JENKINS-8392 [ JENKINS-8392 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 136259 ] New: JNJira + In-Review [ 174473 ]

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

              Created:
              Updated: