Is it possible to mark a build as failed via a REST call to teamcity - you can view the status but can you change it ?

Is it possible to mark a build as failed (post it being marked as success), or can you delete a successful build via a REST call to teamcity ?

thanks

Kevin

1 comment
Comment actions Permalink

Hi Kevin,

No, it is not possible to change build status using REST API. Please vote for the related feature request: https://youtrack.jetbrains.com/issue/TW-38093
Current workaround is to change the build status via emulating the HTTP request sent by the browser on invoking the corresponding action in the UI.

You can delete build via REST request:

curl -X DELETE -u user:password  http://teamcity:8111/httpAuth/app/rest/builds/id:<buildId>
0

Please sign in to leave a comment.