失败阶段后继续詹金斯工作,同时将阶段标记为失败
我目前有分别按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.