In order to make using traits easier, we need to add @Symbol annotations to the trait implementations.
Consolidate common traits into SCM-API
Add @Symbol annotations
Found multiple extensions which provide method originPullRequestDiscoveryTrait
Cannot discover all GitHub repos and their branches with Job DSL anymore
Unable to set extensions for Git SCM Source via DSL
Support traits for ScmNavigators
missing elements in job dsl 'organizationFolder'
Cannot configure ForkPullRequestDiscoveryTrait by using Job DSL dynamic API
Add symbols to SCM discovery traits to prevent name clashes
renescheibe has this now been resolved since the two pull requests you listed have been merged?
The former status was correct (fixed but unreleased). I am still waiting for releases of the two plugins. I would then add the version numbers here for reference and close the ticket afterwards.
Now a release for each of the 3 plugins has been performed that contains the relevant changes. Thanks everybody.
I'm really struggling to find documentation on how to use these traits with Job DSL. Can anyone point me in the right direction or is the documentation simply missing? Having to chose a number for the strategy id is anything but self-explanatory. I want to know what the available options are and what they do.
codiophile I recommend using the pipeline snippet generator with the `resolveScm` step as that lets you see the effects on an SCMSource instance.
See attached video: