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

后端 未结 13 931
离开以前
离开以前 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:31

    I have a new response for this case: the easy way to solve this is having you jenkinsFile from source code.

    Then you chose: this job have a git parameter

    And and the Pipeline setup, unchecked the "Lightweight checkout" checkbox, this will perform a really git checkout on job workspace.

    After, the parameter will be autopopulate by your git branch

提交回复
热议问题