且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 groovy 脚本在 jenkins 中获取特定作业的所有构建号?

更新时间:2023-12-05 14:04:10

为了使用活动选择插件获取特定作业的构建列表,您可以使用以下示例.

In order to get a list of builds for a particular job using the active choice plugin, You can use the following example.

首先,创建一个用于检索作业名称的活动选择参数:

First, create an active choice parameter for retriving the job names:

然后创建一个活动选择参数以从所选作业中检索内部版本号:

Then create an active choice parameter for retriving the build numbers from the selected job: