我试图通过Teamcity API列出我自己的网站中的Teamcity构建,以创建仪表板。我需要的一个功能是通知合适的人。为此,我将构建设置为“通知配置”中的构建设置。
我的问题是,有没有办法从Teamcity API中获取此信息?如果没有,是否有任何方法可以从其他地方获取此信息?
谢谢!
upd :这是放松通知器的配置方式:
在此图片上,我们选择我们选择菜单中的“松弛”选项。
在底部选项中,我们为此构建设置了Slack Channel
Im trying to list my TeamCity builds in my own site with the TeamCity API to create dashboard. One feature I need is to notify the right person. To do so I set in the build setting the right Slack channel as the notification configuration.
My question is, is there a way to get this info from the TeamCity API? And if not, is there any way to get this info from other place?
Thanks!
UPD: This is how the Slack notifier is configured:
On this picture we choose the 'Slack' option in menu.
Here in bottom option we set the slack channel for this build
发布评论
评论(1)
您可以通过TeamCity REST API获得有关
构建功能
的信息,并且这些功能又包含有关已配置的Slack Notifier的信息。get
请求https://< serverUrl>/app/rest/buildTypes/id:my_build_configuration_id
:您对iS插件:通知:jbslacknotifier:channel
You get get the information about
Build features
via TeamCity REST API and the features will in turn contain information about configured Slack notifiers.Example of a response for a
GET
request tohttps://<serverUrl>/app/rest/buildTypes/id:MY_BUILD_CONFIGURATION_ID
:The property you are interested in is
plugin:notificator:jbSlackNotifier:channel