A question about Clean-up Rules

If I have setup root project clean-up rules with custom settings and use the "-th successful build", is the number I set shared among all sub-projects or just used with all the sub builds?

For example, If my root project clean-up settings is to use a custom setting with everything older than the "10"-th successful build is cleaned-up.  If I have 10 sub-projects under this root then what happens?   Will every sub-project keep the last 10 builds (so the last 100 successful builds will not be clean-up) or will the last 10 builds total from any of those 10 sub-projects be kept?

0
1 comment

Hi,

 

clean up rules, like almost everything, is inherited from parent projects. If you set it on the root project, every project will inherit the root rules. You can modify them on every project you want, and their subprojects should inherit the parent project rules, not the root project ones. 

 

Each project applies their clean up rules independently from each other. The rules are inherited, but not "shared".On top of that, rules apply at the build configuration level. If you keep the last 10 builds of a project, independently of where that rule comes from, each build configuration in that project will keep 10 builds for each build configuration.

 

Hope this helps.

0

Please sign in to leave a comment.