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

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

    I am facing a similar problem here. Our users are migrating their jobs from freestyle to pipeline. They do not want Jenkinsfile stored in their repos(historical reason) and still want to use "Git Parameter" plugin

    So we have to use use "Pipeline script" and develop a different plugin which works like "Git Parameter".

    This new plugin does not integrate with SCM setting in the project. The plugin is at https://plugins.jenkins.io/list-git-branches-parameter

    Hope it helps you as well

提交回复
热议问题