How can I get all build numbers of particular job in jenkins using groovy script?

前端 未结 3 785
南旧
南旧 2020-12-20 04:34

I am using active choice plugin, have groovy script which retrieves names of all jobs in Jenkins. Can I write a groovy script which get me list of all the build numbers of t

3条回答
  •  失恋的感觉
    2020-12-20 05:21

    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:

提交回复
热议问题