[JIRA] (JENKINS-61707) githubTagDiscovery trait still not configurable via job-dsl

3 views
Skip to first unread message

mail@pascalhofmann.de (JIRA)

unread,
Mar 27, 2020, 4:57:02 AM3/27/20
to jenkinsc...@googlegroups.com
Pascal Hofmann created an issue
 
Jenkins / Bug JENKINS-61707
githubTagDiscovery trait still not configurable via job-dsl
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: github-branch-source-plugin, job-dsl-plugin
Created: 2020-03-27 08:56
Environment: jenkins 2.222.1
job-dsl 1.77
github-branch-source-plugin 2.6.0
Priority: Minor Minor
Reporter: Pascal Hofmann

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

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mail@pascalhofmann.de (JIRA)

unread,
Mar 27, 2020, 4:58:03 AM3/27/20
to jenkinsc...@googlegroups.com
Pascal Hofmann updated an issue
Change By: Pascal Hofmann
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: []

 
{
{}}
{
noformat}

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

bitwiseman@gmail.com (JIRA)

unread,
Apr 28, 2020, 4:46:02 PM4/28/20
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Apr 28, 2020, 4:47:03 PM4/28/20
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Not A Defect
 
Change By: Liam Newman
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages