-
Bug
-
Resolution: Unresolved
-
Major
I just recently learned that "keeping a build forever" does not necessarily mean that it's artifacts are also saved forever.
Right now I try to keep the number of saved artifacts to a minimum by selecting the "Discard all but the last successful/stable artifact to save disk space"-option, but this also deletes the artifacts of old release builds!
It would be nice to have an option in the release build section that allows me to keep the artifacts for all release builds, no matter if the "Discard all but the last successful/stable artifact to save disk space"-option or the "Discard Old Builds"-option are selected or not.
I have not found an easy workaround for this so far, that's why I created this issue.
- is related to
-
JENKINS-6166 Delete archived artifacts of past builds, except promoted ones
-
- Open
-
I would think the right way to tackle this would be to change the core code to be pluggable in the area where it applies this logic so that the release plugin could help decide if the artifact should be kept or not. The alternative would be for the release plugin itself to capture the artifacts but that would be redundant configuration and waste even more disk space.
It is really unlikely that I'll have the time to try to accomplish this one. Maybe someone else can pick this up?