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
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'
Add symbols to SCM discovery traits to prevent name clashes
I have proposed for the git-plugin https://github.com/jenkinsci/git-plugin/pull/595
I am successfully using the following Job DSL.
Could this be bumped in priority? These traits are used downstream by the job DSL plugin and their lack forces users to restot to the configure block in the job DSL configurations, which is an unsafe hack, basically.
Included in git plugin 4.0.0 released Nov 2, 2019
Thanks for your work Mark Waite
This is not fixed yet, therefore I reopen it.
There are still the bitbucket-branch-source-plugin and github-branch-source-plugin to be fixed. I opened pull requests for them: