以编程方式固定Teamcity中的构建 [英] Programmatically pin a build in Teamcity

查看:63
本文介绍了以编程方式固定Teamcity中的构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过编程/自动在Teamcity中固定版本?
如果部署构建成功,我想固定一个构建。

Is it possible to pin a build in Teamcity programmatically/automatically? I want to pin a build if a Deploy-build is successfull.

推荐答案

只是发现它可以通过 REST API
我可以f.ex发送一个PUT像这样的命令
http:// teamcityserver:81 / httpAuth / app / rest / builds / id:688 / pin /
,然后将固定ID为688( teamcity.build.id )的内部版本。

Just found out that its possible through the REST API I can f.ex send a PUT command like this http://teamcityserver:81/httpAuth/app/rest/builds/id:688/pin/ and then the build with id 688 (teamcity.build.id) will be pinned.

这篇关于以编程方式固定Teamcity中的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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