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

查看:31
本文介绍了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 阶段开始管道没有意义......我想再次尝试该步骤并从管道中继续.我在 Build Pipeline Plugin 中没有看到任何类似的功能.

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.

谢谢!!

推荐答案

checkpoint 就是你要找的.不幸的是,它仅在 CloudBees Jenkins Enterprise 套件中可用,在免费版本中不可用.

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天全站免登陆