-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
jenkins 2.222.1
job-dsl 1.77
github-branch-source-plugin 2.6.0
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 { } } } } }