There is a Discard old builds option in Jenkins jobs with a few different 
options.

 

Which model does Jenkins use for artifact expiration, Number first or Date 
first? Can both the number of days and number of build artifacts be 
specified and let Jenkins figure out which one happens first?

 

For example, if I set “Days to keep artifacts” to 15 and “Max # of builds 
to keep with artifacts” to 32, which one takes precedence?  

 

If, in that 15 day period, I have more than 32 builds with artifacts, does 
it remove the older artifacts to stay at 32, or does it keep them for 15 
days?

 

We are trying to set a standard for all of our builds to have the same 
number, however, it is hard to set a solution for projects that do not 
build as often.  So, we want to keep up to 32 artifacts, and delete 
artifacts older than 15 days, but not for those that do not build as 
often…may be no way to have all the jobs set the same in this case?

 

Thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to