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