Dynamically Fill Jenkins Choice Parameter With Git Branches In a Specified Repo

后端 未结 13 919
离开以前
离开以前 2020-11-29 16:41

I have a parameterized Jenkins job which requires the input of a specific Git branch in a specific Git repo. Currently this parameter is a string parameter.

Is ther

13条回答
  •  一整个雨季
    2020-11-29 17:23

    Extended Choice Parameter plugin will allow you to read the choices from a file.

    Of course, now you have another problem: how to make sure the file is up-to-date (that can be done with a post-commit hook) and propagated to all the users (that can be done by placing it on a shared file server). But there may be better solutions.

提交回复
热议问题