I\'ve a group of multibranch pipeline jobs generated with the following piece groovy script:
[
\'repo1\',
\'repo2\',
].each { service ->
multib
I believe you need to use includes() to specify pattern(s) identifying which branches will be included:
branchSources {
git {
remote("git@gitlab.com:whatever/${service}.git")
credentialsId('gitlab-ssh-key')
includes('ci')
}
}
You can specify a number of patterns, which can include wildcards. For example:
includes("master release/* feature/* bugfix/*")
There is also a corresponding excludes()
for even finer-grained control.