I've cross posted in the https://groups.google.com/forum/#!forum/job-dsl-plugin email list, as it seems like a better place for this discussion *(sorry, didn't know it existed beforehand)*
On Wednesday, 3 April 2019 17:38:19 UTC+2, j.k...@travelaudience.com wrote: > > I'm getting lost in the mixed documentation on how to manage the > configuration of a multibranchPipelineJob with the Job DSL plugin. > > Creating the job itself is straight forward, but when trying to recreate > the Branch Sources for github as is possible in the UI, I'm not sure which > patterns to follow. > > First there is what seems to be the options provided by the jobdsl plugin > for using multibranch pipeline: > https://jenkinsci.github.io/job-dsl-plugin/#path/multibranchPipelineJob-branchSources-github > > multibranchPipelineJob('example') { > branchSources { > github { > scanCredentialsId('github-ci') > repoOwner('OwnerName') > repository('job-dsl-plugin') > buildOriginBranch(true) > buildOriginBranchWithPR(false) > buildForkPRMerge(false) > buildOriginPRHead(true) > buildOriginPRMerge(true) > } > } > } > > But these options don't cover most of the settings that are possible. For > example, the *Discover tags* is not an option from these. > > So, that's where the Dynamic DSL comes in, right? > So I look at > https://localhost:8080/plugin/job-dsl/api-viewer/index.html#path/multibranchPipelineJob-branchSources > and some of the options I'm looking for are now there, but the ones used > before become deprecated. > (see screenshot) > > I also learned from a previous (non)bug[ > https://issues.jenkins-ci.org/browse/JENKINS-54456], that the *configure* > option is not available in the github context, and so it's not possible to > simply extend the functionality using that technique. > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6468596b-7db0-45de-ab3f-2865ed2b9db0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.