在构建成功后,将构建设置为部分成功 [英] Set build as partially succeeded after build is already succeeded

查看:65
本文介绍了在构建成功后,将构建设置为部分成功的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用REST API在构建完成后将构建标记为部分成功。我使用TFS构建工件在Jenkins中运行集成测试,如果Jenkins中的测试失败,我想让Jenkins标记构建橙色。这可能是
吗?

I'd like to mark a build as partially succeeded after the build is complete using the REST API. I have integration tests run in Jenkins using the TFS build artifacts and I want to enable Jenkins to mark the build orange if the tests fail in Jenkins. Is this possible?

推荐答案

你好Tellah,

Hi Tellah,

不,这是不可能的。完成后无法更改Build结果。

No, it is impossible. You could not change Build result after it is completed.

有一个REST API来更新构建信息:
https://www.visualstudio.com/en-us/docs/integrate/api/build/builds#update-a-构建

There is the REST API to update build information: https://www.visualstudio.com/en-us/docs/integrate/api/build/builds#update-a-build

但是在构建完成后,结果无法更改。

But after build is completed, the result could not be changed.

最好的问候


这篇关于在构建成功后,将构建设置为部分成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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