即使构建步骤失败,如何继续Jenkins构建? [英] How to continue a Jenkins build even though a build step failed?

查看:718
本文介绍了即使构建步骤失败,如何继续Jenkins构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与Jenkins一起使用Phing构建脚本,并希望在工作中端到端运行它并捕获所有报告.问题是它停止在失败的构建步骤上构建.有什么方法或插件即使在出现故障时仍可以继续工作吗?

I am using a Phing build script with Jenkins and would like to run it end to end on a job and capture all the reports. The problem is it stop building on a failed build step. Is there a way or a plugin that would continue the job even on failures?

谢谢

推荐答案

我对Phing知之甚少,但是由于它基于Ant,因此如果您执行的构建步骤具有"failonerror"属性,则应该可以将其设置为false,以便在该步骤返回错误时整个构建不会失败.

I don't know a lot about Phing but, since it's based on Ant, if the build step you are executing has a "failonerror" attribute you should be able to set it to false so that the entire build doesn't fail if the step returns an error.

这篇关于即使构建步骤失败,如何继续Jenkins构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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