由于试验失败詹金斯标志着好身材的失败 [英] Jenkins marks good build as failure because of test failed

查看:181
本文介绍了由于试验失败詹金斯标志着好身材的失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在任何专家,请帮助我。由于一些单元测试失败詹金斯标志着好身材的失败。如果我没有单元测试运行构建,我会得到建立成功状态。如何配置詹金斯做这样的事情:

Could any expert please help me with this. Jenkins marks good build as failure because of some unit test failed. If I run the build without unit test, I would get Build Success status. How can I configure Jenkins to do something like this:

1)建立成功+单元测试失败 - >发送电子邮件通知的自定义内容,如建立成功+多少单元测试失败

1.) Build success + Unit Tests fail --> Send out email notification with custom content like Build success + How many Unit Test Fail.

2)建立成功+单元测试的成功 - >发送电子邮件通知说,双方建立和单元测试的成功

2.) Build success + Unit Tests success --> Send out email notification saying both Build and Unit Tests success

3)构建失败 - >不要运行单元测试 - >发送电子邮件通知上构建失败

3.) Build fail --> Don't run Unit Tests --> Send out email notification on Build fail.

与我的电子邮件-EX的设置,现在,我不断收到构建失败(好身材)的通知,如果任何单元测试失败。我认为詹金斯标志着好身材是失败的,因为测试失败。我将不胜AP preciate如果有人可以帮助我。谢谢你。

With my Email-ex setup now, I keep getting Build fail (good build) notification if the any unit test fail. I think Jenkins marks good build as failure because of test failed. I would greatly appreciate if anyone could help me out. Thank you.

推荐答案

您使用Maven来管理你的项目和它的依赖。如果是的话,你可以提供参数的 -Dmaven.test.failure.ignore = TRUE 下的Maven项目配置 - > MAVEN_OPTS

Are you using Maven to manage your project and its dependencies. If yes, you can provide the parameter -Dmaven.test.failure.ignore=true under Maven Project Configuration -> MAVEN_OPTS

希望这将帮助你实现这一构建将是即使单元测试用例未能成功的功能。

Hope this will help you to achieve the functionality that the build will be success even if unit test cases are failing.

这篇关于由于试验失败詹金斯标志着好身材的失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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