Project cleanup rules through REST API Denis Akulov Created December 22, 2017 21:06 Hi, I am not seeing project cleanup rules exposed through REST API. Is there a way to get them?
Hi Denis,
unfortunately this isn't possible just yet: https://youtrack.jetbrains.com/issue/TW-43211 Please watch and vote on the issue to help it get implemented. You can also try and leave a comment if this feature is very important for you.
Thank you for the information.
I am looking at writing a plugin to find all projects that have custom cleanup settings. What is the right way to do this?
I see http://javadoc.jetbrains.net/teamcity/openapi/9.1/jetbrains/buildServer/serverSide/SProject.html#getConfigurationFile() which can be parsed to get <cleanup> tag.
Is there a better way to get that information?
TeamCity 2017.1.3 (build 46961)
Bump.
I am open to using non-public API as well. Thank you.