标记为Teamcity构建的成功行动 [英] Mark as successful action for builds in Teamcity

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

问题描述

我对所有经验丰富的Teamcity用户都有疑问. 我想根据特定条件退出工作,但我不希望工作状态为失败.即使通过退出代码1"退出工作或通过其他方法实现相同目的的任何指针(退出Teamcity工作但将工作标记为成功),也可以将工作标记为成功吗?非常感激! 谢谢!

I have a question to all the experienced Teamcity users out there. I would like to exit out of a job based on a particular condition, but I do not want the status of the job as a failure. Is it possible to mark a job as successful even when you exit out of the job with an "exit code 1" or any pointers to achieve the same (exit out of a Teamcity job but mark the job as successful) through an alternative way is greatly appreciated! Thanks!

推荐答案

您可以使用TeamCity

You can use TeamCity service messages to update build status, e.g. write to the output

##teamcity[buildStatus status='SUCCESS' text='{build.status.text} and then made green']

获取与and then made green字符串连接的构建状态文本.

to get build status text concatenated with the and then made green string.

这篇关于标记为Teamcity构建的成功行动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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