[JIRA] (JENKINS-57942) Found multiple extensions which provide method originPullRequestDiscoveryTrait

15 views
Skip to first unread message

pm15borc@gmail.com (JIRA)

unread,
Jun 10, 2019, 1:24:02 PM6/10/19
to jenkinsc...@googlegroups.com
Paul Borchers created an issue
 
Jenkins / Bug JENKINS-57942
Found multiple extensions which provide method originPullRequestDiscoveryTrait
Issue Type: Bug Bug
Assignee: Unassigned
Components: github-branch-source-plugin
Created: 2019-06-10 17:23
Environment: Jenkins version = 2.164.3(docker jenkins/jenkins:lts)
Jobdsl version = job-dsl-1.74
Priority: Major Major
Reporter: Paul Borchers

I'm getting an error "Found multiple extensions which provide method originPullRequestDiscoveryTrait with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait" when I try to use the originPullRequestDiscoveryTrait.  

 

I think it could be fixed by adding the @Symbol to OriginPullRequestDiscoveryTrait.java  That's what was done for BranchDiscoveryTrait.java.

 

job-dsl usage

organizationFolder('Org') {
   organizations {
     github {
       repoOwner('Owner')
       traits {
         originPullRequestDiscoveryTrait()
{{      }}}
{{    }}}
{{  }}}
}

 

Stacktrace...

javaposse.jobdsl.dsl.DslException: Found multiple extensions which provide method originPullRequestDiscoveryTrait with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait, org.jenkinsci.plugins.github_branch_source.OriginPullRequestDiscoveryTrait]]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pm15borc@gmail.com (JIRA)

unread,
Jun 10, 2019, 1:26:02 PM6/10/19
to jenkinsc...@googlegroups.com
Paul Borchers updated an issue
Change By: Paul Borchers
I'm getting an error "Found multiple extensions which provide method originPullRequestDiscoveryTrait with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait" when I try to use the originPullRequestDiscoveryTrait.  

 

I think it could be fixed by adding the @Symbol to [OriginPullRequestDiscoveryTrait.java|#L132].]  That's what was done for [BranchDiscoveryTrait.java|https://github.com/jenkinsci/github-branch-source-plugin/blob/master/src/main/java/org/jenkinsci/plugins/github_branch_source/BranchDiscoveryTrait.java].

 

job-dsl usage
{quote}{{organizationFolder('Org') {}}

{{   organizations {}}
{{     github {}}
{{       repoOwner('Owner')}}
{{       traits {}}
{{            originPullRequestDiscoveryTrait()}}
\{{                } }}
\{{
         } }}
\{{
    } }}
{{}}}
{quote}
 

Stacktrace...
{quote}javaposse.jobdsl.dsl.DslException: Found multiple extensions which provide method originPullRequestDiscoveryTrait with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait, org.jenkinsci.plugins.github_branch_source.OriginPullRequestDiscoveryTrait]]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
{quote}
 

pm15borc@gmail.com (JIRA)

unread,
Jun 10, 2019, 1:26:02 PM6/10/19
to jenkinsc...@googlegroups.com
Paul Borchers updated an issue
I'm getting an error "Found multiple extensions which provide method originPullRequestDiscoveryTrait with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait" when I try to use the originPullRequestDiscoveryTrait.  

 



 

job-dsl usage
{quote}{{organizationFolder('Org') {}}
{{   organizations {}}
{{     github {}}
{{       repoOwner('Owner')}}
{{       traits {}}
{{        
    originPullRequestDiscoveryTrait()}}
\ {{      }}}
\ {{    }}}
\ {{  }}}
{{}}}
{quote}
 

Stacktrace...
{quote}javaposse.jobdsl.dsl.DslException: Found multiple extensions which provide method originPullRequestDiscoveryTrait with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.OriginPullRequestDiscoveryTrait, org.jenkinsci.plugins.github_branch_source.OriginPullRequestDiscoveryTrait]]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
{quote}
 

bitwiseman@gmail.com (JIRA)

unread,
Jun 13, 2019, 3:56:02 PM6/13/19
to jenkinsc...@googlegroups.com

nickbroon@gmail.com (JIRA)

unread,
Jul 26, 2019, 9:32:03 AM7/26/19
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Feb 10, 2020, 7:42:03 PM2/10/20
to jenkinsc...@googlegroups.com
Liam Newman resolved as Duplicate
 
Change By: Liam Newman
Status: Open Resolved
Resolution: Duplicate
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

c_dug@hotmail.com (JIRA)

unread,
Apr 2, 2020, 7:39:02 AM4/2/20
to jenkinsc...@googlegroups.com
Conor Duggan commented on Bug JENKINS-57942
 
Re: Found multiple extensions which provide method originPullRequestDiscoveryTrait

Hi Paul Borchers,

I'm still seeing this issue with latest version of job-dsl (job-dsl-1.77). Was the proposed fix added in that release/previous release?

Thanks.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages