How to continue a stage in jenkins pipeline even if the build fails

回眸只為那壹抹淺笑 提交于 2019-12-12 22:29:36

问题


So I have a pipeline with multiple stages and with each stage there are couple of build job processes. When I run the pipeline and there is a failure in any one of the builds the stage fails and doesn't build the other builds in the stage. How can I get around this so it builds the remaining jobs in the stage?


回答1:


you can use the convention

try {
    // your build steps
    } finally {
        // always run...
    }


来源:https://stackoverflow.com/questions/40942178/how-to-continue-a-stage-in-jenkins-pipeline-even-if-the-build-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!