失败阶段后继续詹金斯工作,同时将阶段标记为失败 [英] Continue Jenkins job after failed stage while marking stage as failed

查看:659
本文介绍了失败阶段后继续詹金斯工作,同时将阶段标记为失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有分别按4个詹金斯阶段运行的性能测试.当前,如果性能测试失败,则整个管道都会失败.我可以通过尝试捕获来减轻这种情况,这可以让我继续,但是在实际失败时将其标记为成功. 我想为失败的阶段获得一个红色的失败框,并允许其他阶段运行. 我不担心詹金斯是否将整个工作都标记为失败,只要突出显示了失败的阶段并且不会阻止其他阶段的运行即可.

I currently have separate perf tests running as 4 jenkins stages. Currently if a perf test fails the entire pipeline fails. I can mitigate this by wrapping in a try catch which will let me continue, but will mark the stage as a success when it has actually failed. I'd like to get a red failure box for the stage that has failed, and allow the other stages to run. I'm not worried if Jenkins marks the entire job as a failure, so long as the stage that failed is highlighted and doesn't prevent other stages from running.

推荐答案

在这里看看请注意,您可以选择是否将整个作业标记为失败,但是最重要的是,无论标记那些失败的阶段,所有阶段都已完成.

Note that you have a choice whether to mark the whole job as failed or not, but most importantly all stages are done regardless while marking those that failed.

我认为这是一个重复的问题,但是我无法链接这些问题.

I think this is a duplicate question, but I can't link the questions.

这篇关于失败阶段后继续詹金斯工作,同时将阶段标记为失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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