Jenkins中的“参数列表"以显示另一个内部版本的内部版本号的列表 [英] Parameter List in Jenkins to display list of build numbers from another build

查看:119
本文介绍了Jenkins中的“参数列表"以显示另一个内部版本的内部版本号的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两种Jenkins构建,一种用于编译,另一种用于部署.

I have two Jenkins builds, one for compiling and one for deploying.

开发人员希望在运行部署版本时能够从编译器版本中选择一个版本,而不总是运行最新版本.

The developer wants to be able to choose a build from the compiler build when running the deploy build, not always run the most recent build.

我想要的是一种方法,该方法使用来自编译版本的成功\不稳定版本的列表填充部署版本的选择参数.

What I am after is a method of populating a choice parameter for the deploy build with a list of successful\unstable builds from the compile build.

然后我将使用参数中列出的选项来部署该工件.

I will then use the the option listed in the parameter to deploy that artifact.

推荐答案

一种选择是使用升级的构建插件以标记要部署的特定构建.这会将选择从部署版本移至编译版本.选择编译版本中的何时升级... 选项,并设置您希望升级的工作方式.开发人员可以选择(或自动化)要升级的版本.在部署版本中,复制Artifact插件可以获取适当的版本(基于到最新升级版本的永久链接).

One option is to use the Promoted Builds plugin to mark a specific build to be deployed. This moves the choice from the deployment build into the compilation build. Select the Promote builds when... option in the compilation build and set up how you want promotion to work. The developer could choose (or automate) the build to promote. In the deployment build, the Copy Artifact plugin can grab the appropriate build (based on a permalink to the latest promoted build).

这篇关于Jenkins中的“参数列表"以显示另一个内部版本的内部版本号的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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