通过 REST 调用停止 TeamCity 构建 [英] Stop a TeamCity build via REST call

查看:49
本文介绍了通过 REST 调用停止 TeamCity 构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过 REST API 取消当前正在运行的构建?

Is it possible to cancel a currently running build via REST API?

我有一个集成,可以获取当前正在运行的构建,如果失败,我想终止给定类型的构建.我知道如何列出给定类型的失败构建,然后如何传递停止命令?

I've got an integration which fetches currently running builds, and I would like to terminate builds of a given type if they are failed. I know how to list the failing builds of a given type, how do I then pass the stop command?

推荐答案

也许不是 REST API,但如果你看一下 此处(在评论"部分的底部)有一项未记录"功能可让您通过 HTTP 进行操作.

Maybe not with the REST API, but if you look here (towards the bottom in the Comments section) there's an 'undocumented' feature that lets you do it over HTTP.

这篇关于通过 REST 调用停止 TeamCity 构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆