詹金斯建立健康阈值 [英] Jenkins build health thresholds

查看:145
本文介绍了詹金斯建立健康阈值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以更改Jenkins根据失败的测试来计算构建运行状况的方式?我希望詹金斯将 any 测试失败视为晴天"以外的事情,但到目前为止,我一直在寻找一种方法来解决这一问题.标准设置是否允许这种级别的控制,或者也许有插件可以做到这一点?

Is there a way to change how Jenkins computes build health based on failing tests? I'd like Jenkins to treat any failing tests as something other than "sunny", but so far my searching for a way to do that has been fruitless. Does the standard setup allow this level of control, or are there perhaps plugins that can do this?

推荐答案

如果使用

If you use the xUnit plugin, which supports several test report formats, you can add a post-build action to parse your build's test reports and declare a build as unstable or failed depending on the number of tests that fail or are skipped.

这篇关于詹金斯建立健康阈值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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