-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.63
Job DSL 1.64
The various {{ScmNavigator}}s in the Bitbucket Branch Source and GitHub Branch source plugins have deprecated their previous APIs in favor or using Traits.
The generated DSLs do not currently support these trait types by looking at http://localhost:8080/plugin/job-dsl/api-viewer/index.html#path/organizationFolder-organizations-bitbucket. See https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/e220b43404aca15574c7a9be3724a40587093414/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMNavigator.java#L230-L232 for the setter that is annotated with @DataBoundSetter.
- duplicates
-
JENKINS-45504 Add @Symbol annotations to traits
-
- Closed
-
- is blocked by
-
JENKINS-26535 DescribableHelper does not handle wildcards well
-
- Open
-
- is duplicated by
-
JENKINS-48360 Missing DSL for traits
-
- Closed
-
- is related to
-
JENKINS-46202 Cannot discover all GitHub repos and their branches with Job DSL anymore
-
- Closed
-
-
JENKINS-53912 Unable to use SSHCheckoutTrait
-
- Fixed but Unreleased
-
Yes, resolving this would be helpful. I've worked around it for now using the configure{} block, but this isn't ideal.
One thing that's going to be an issue is the 'serverUrl', but this is probably more of an issue for the Bitbucket Branch Source Plugin. Basically, serverUrl should refer to a globally configured Bitbucket server, but unfortunately, the globally configured server has a name, and this takes an id. It's not easy to get them to line up properly when you're not doing this manually inside of the gui.