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

githubTagDiscovery trait still not configurable via job-dsl

XMLWordPrintable

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

       

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

              Created:
              Updated:
              Resolved: