获取TeamCity的构建状态 [英] Get TeamCity build status

查看:81
本文介绍了获取TeamCity的构建状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经运行了Teamcity,该版本具有* .msi安装程序的工件输出,我需要标记成功和失败的测试版本,例如

 <文件名> _< build_status> .msi 

我已设置即使某些测试失败,TC也可以构建安装程序,以便将其发送给我们的测试人员。因此,事情是从TeamCity环境中获取构建状态,而不使用REST。

解决方案

我知道您说您没有想要使用REST,但是您要做的就是为此URL执行GET请求,并替换您的构建配置ID。 IMO,这是最简单的方法(前提是安装程序的构建配置是单独的构建)

  / httpAuth / app / rest / builds / buildType:Installer_Build / status 

如果您需要实施此操作的帮助,请告诉我。



实现



1)添加要设置为GET请求输出的参数



2)添加一个PowerShell步骤并将代码作为源运行-



希望这会有所帮助


I've got Teamcity running build, which has artifact output of *.msi installer, I need to mark successfull and failed tests builds, something like

<filename>_<build_status>.msi

I've set TC to build installer even if some tests are failed, in order to send it our tester. So the thing is to recieve build status from TeamCity environment, without using REST.

解决方案

I realise that you said you didn't want to use REST, but all you need to do is perform a GET request for this URL, substituting your build configuration id. IMO this is the simplest approach (provided the installer build config is a separate build)

/httpAuth/app/rest/builds/buildType:Installer_Build/status

If you need help implementing this then let me know.

IMPLEMENTATION

1) Add a parameter that you want to be set as the output from the GET request

2) Add a PowerShell step and run the code as source - Get Build Status Gist

3) Update the relevant parameters highlighted below to match your settings

Hope this helps

这篇关于获取TeamCity的构建状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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