Delete / remove multiple build results in one step

I know that I can "remove" one build result at the time, but sometimes, in fact often, there are build results that fail for the "wrong" reasons.
I regularly need to delete these results in order not to pollute the stats with tests failures that were not due to code changes.
Is it really possible that if I have to delete 100 test results, I need to do this one by one, with 5 clicks per build result?!!! That's 500 manual clicks

E.g. 
1) Click on Project
2) Click on build result 
3) Action
4) Remove
5) Confirm

What I'd need is a way to "multi remove" without having to go through so many hoops.
Please ask more clarifications if my question or steps are not clear.

1
4 comments

Hi Fran,

 

I'm not exactly sure what you mean with "build results", as it seems that you are manually deleting test failures, but you should be able to delete a full build in itself that removes all the data from the build.

 

If that wouldn't work, while manually it's unlikely that you can do it easily, you could use the REST API to script your way through removing multiples: https://www.jetbrains.com/help/teamcity/rest-api.html.

 

Other than that, it might be easier if you could be more specific or put up an example, as I'm somewhat confused by the terms you were using.

0
Avatar
Permanently deleted user

Thanks for your reply.

Yes I am deleting (removing) one build at a time (and the related tests that were run as part of the build process).

I'd like to delete multiple builds, I was hoping for check boxes in the view below.

But from what you're saying I cannot do this via the UI, so I have either continue removing them one by one by an insane number of manual clicks (at least 5 clicks to remove each build):

 
So the answer is basically saying that I have to study how to use the APIs (which I never needed to use before). 

Could you at least suggest what are the restful API command to run for me to remove multiple builds at once (hopefully there's no additional setup required on the server side to enable me to run the API)?

0

If you are not particularly familiar with REST APIs, then it might be less of a hassle doing it manually.

 

If you want to script it, you would need the following:

-Send a DELETE request to <url>/app/rest/builds/multiple/<build_locator>

-Use this: https://www.jetbrains.com/help/teamcity/rest-api.html#RESTAPI-BuildLocator to build a "build locator" that will match the builds you require.

 

With this in mind, please feel free to open a feature request in our tracker: https://youtrack.jetbrains.com/issues/TW . We are overhauling the UI, so checkboxes for multiple selection of builds sounds like a scenario that could be considered for implementation.

0
Avatar
Permanently deleted user

Somebody did create a feature request here: https://youtrack.jetbrains.com/issue/TW-60447

Please add your thumbs up to that if you want this feature!

0

Please sign in to leave a comment.