允许在詹金斯管道中晋升工作

问题描述:

我有一个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.