Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Not A Defect
-
Component/s: github-branch-source-plugin, job-dsl-plugin
-
Labels:None
-
Environment:jenkins 2.222.1
job-dsl 1.77
github-branch-source-plugin 2.6.0
-
Similar Issues:
Description
Even though I have the latest plugins mentioned in https://issues.jenkins-ci.org/browse/JENKINS-45504 somehow the githubTagDiscovery trait is still not configurable via job-dsl.
I get the following error:
javaposse.jobdsl.dsl.DslScriptException: (script, line 29) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.githubTagDiscovery() is applicable for argument types: () values: []
multibranchPipelineJob(…) { branchSources { branchSource { source { github { id(…) credentialsId(…) repoOwner(…) repository(…) // unfortunately these are mandatory: configuredByUrl(false) repositoryUrl('') traits { gitHubBranchDiscovery { strategyId(1) } gitHubPullRequestDiscovery { strategyId(2) } githubTagDiscovery() } } } strategy { defaultBranchPropertyStrategy { } } } } }
Groovy and Java are case-sensitive. The name of the symbol is "gitHubTagDiscovery" (capital H).
https://github.com/jenkinsci/github-branch-source-plugin/blob/aa83a7713c28b4a0a144f84081501f4c93e4c236/src/main/java/org/jenkinsci/plugins/github_branch_source/TagDiscoveryTrait.java#L77