How to cleanup old Failed Builds in TeamCity?

前端 未结 3 2125
广开言路
广开言路 2021-02-11 13:18

We do have hundreds of failed builds in TeamCity (number is especially high because of old retry on fail settings) and now it\'s a pain to browse history.

I want to clea

3条回答
  •  自闭症患者
    2021-02-11 14:05

    There is a way to delete a build and it is using REST protocol: http://confluence.jetbrains.net/display/TW/REST+API+Plugin

    Get details of a specific build:
    GET http://teamcity:8111/httpAuth/app/rest/builds/
    (also supports DELETE to delete a build)
    

    To run this you need a REST client. I've used a plugin for Firefox, which is quite nice. But any REST client should do the work. It makes sense first trying on the test TeamCity instance, as you won't have a chance to recover deleted build, except from backup.

    Update

    New version of TeamCity (since 8?) supports deleting builds naturally. Hey-hey!! ))

    Just go to the build page, then Actions > Remove ...

提交回复
热议问题