Jenkins构建管道-在阶段重新启动 [英] Jenkins Build Pipeline - Restart At Stage

查看:369
本文介绍了Jenkins构建管道-在阶段重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将以下构建管道设置为工作:

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屋!

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