This plugin is highly motivated by Git Parameter Plugin but But unlike Git Parameter Plugin, this plugin will not change working space at all at build-time
When using jenkins pipeline style job and defining pipeline through "Pipeline script" (not "Pipeline script from SCM"), it becomes difficult to use Git Parameter Plugin since the plugin uses SCM in the job definition.
Sometimes we want to specify a git branch or tag before as a parameter, for "Pipeline script" jobs that use SCM in the script, it is impossible with Git Parameter Plugin. In this particular case, a plugin that can list remote git branches or tags without defining scm in the job is needed.
Please refer to wiki List Git Branches Parameter Plugin
Use remoteURLs: ['repo1', repo2]
parameter argument for get branches from another repos
example:
properties([
parameters([
[$class: 'ListGitBranchesParameterDefinition',
name: 'Branch',
type: 'Branch',
quickFilterEnabled: true,
description: 'Get branches',
remoteURL: 'https://github.com/dbeaver/dbeaver-devops',
remoteURLs: ['https://github.com/dbeaver/dbeaver-ee', 'https://github.com/dbeaver/cloudbeaver-ee'],
credentialsId: 'devops_gh_token',
selectedValue: 'DEFAULT',
defaultValue: 'devel',
sortMode: 'ASCENDING_SMART',
branchFilter: 'refs/heads/.*'
]
])
])
pipeline {
...
}