允许在詹金斯管道中晋升工作 [英] Allow promotion of job in Jenkins pipeline

查看:44
本文介绍了允许在詹金斯管道中晋升工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Jenkins管道,它负责大约5个阶段(构建和几个不同的测试).我正在从Jenkins 1.XX(没有管道)迁移到Jenkins 2,并且我想尽可能地复制我的过程.我在J2上设置的管道作业处理的所有内容完全相同,不同之处在于它使用的是JenkinsFile.唯一的问题是管道插件似乎不像对Freestyle Jobs一样支持特定版本的升级.有没有人找到解决这个问题的方法?

I have a Jenkins pipeline which is responsible for about 5 stages (build and several different tests). I'm migrating from Jenkins 1.XX (with no pipelines) to Jenkins 2 and I'd like to replicate my process as closely as possible. The pipeline job I have set up on J2 handles everything exactly the same except it's using a JenkinsFile. The only issue is that the pipeline plugin does not appear to support Promotion of particular builds like you can do with Freestyle Jobs. Has anyone found a way around this?

推荐答案

似乎是Promoted Builds插件尚不支持管道.如果您检查此问题,则在为管道提供支持方面也有一些利弊.

Seems like Promoted Builds Plugin doesn't support pipelines yet. If you check the issue there is also some good pros and cons about supporting it for pipelines.

这篇关于允许在詹金斯管道中晋升工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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