Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61707

githubTagDiscovery trait still not configurable via job-dsl

    XMLWordPrintable

    Details

    • 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 {
                      }
                  }
              }
          }
      }

       

        Attachments

          Activity

          Show
          bitwiseman Liam Newman added a comment - 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

            People

            Assignee:
            daspilker Daniel Spilker
            Reporter:
            pascalhofmann Pascal Hofmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: