Jenkins构建管道-在阶段重新启动 [英] Jenkins Build Pipeline - Restart At Stage
问题描述
我将以下构建管道设置为工作:
I have the following build pipeline set up as a job:
Stage 1 - verify all dependencies exist
Stage 2 - build the new jar
Stage 3 - Run integration tests
Stage 4 - Deploy to staging environment (manual step)
Stage 5 - Deploy to production environment (manual step)
我正在寻找一种方法,以在出现临时故障的情况下从特定阶段启动构建管道.例如,假设用户单击以部署到生产环境时出现网络问题.我认为从第1阶段开始管道是没有道理的...我想再次尝试这一步骤,然后从管道中继续进行下去.我在构建管道插件中看不到任何类似功能.
I am looking for a way to start the build pipeline from a particular stage in case of a transient failure. For example, let's say there was a network issue when the user clicked to deploy to production. I don't think it makes sense to start the pipeline from stage 1... I'd like to try that step again and continue on from there in the pipeline. I don't see any functionality like this in the Build Pipeline Plugin.
谢谢!
推荐答案
I think checkpoint
is what you are looking for. Unfortunately it is only available in the CloudBees Jenkins Enterprise suite, not in the free version.
我们希望它能够成为开源版本,因为这似乎是一个非常常见的用例.
Let's hope it makes it into the open-source version as it seems to be a very common use case.
这篇关于Jenkins构建管道-在阶段重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!