> you must specify the repo browser you want to use your descriptor. 

> Sorry, what? 

The SCMDescriptor<T> super type constructor requires you pass an abstract 
super type for the browser:

    @Extension // this marker indicates Hudson that this is an 
implementation of an extension point.
    public static final class DescriptorImpl extends 
SCMDescriptor<GitMultiSCM> {

        public DescriptorImpl() {
            super(GitRepositoryBrowser.class);
            load();
        }

Key line of code:

            super(GitRepositoryBrowser.class);


There is no shared browser type between Subversion and Git.  I've found no 
way to get this working without creating two different descriptors 
extending SCMDescriptor<T> - one that specify SubversionRepositoryBrowser 
and one that specifies GitRepositoryBrowser (from git-plugin)... and that 
requires taking a dependency on the git-plugin from multiple-scms.  Bottom 
line:  SCMDescriptor<T> demands a coupling between repo browser 
implementation (we've never been able to get Auto to work reliably).


On Thursday, 30 October 2014 15:24:16 UTC-4, Jesse Glick wrote:
>
> On Thu, Oct 30, 2014 at 3:13 PM, Kelly Brownsberger 
> <[email protected] <javascript:>> wrote: 
> > you must specify the repo browser you want to use your descriptor. 
>
> Sorry, what? 
>
> > The multi-scm plugin seems to have null object for the repo browser [1]. 
>
> The browsing functionality here was just never implemented. I think it 
> could be, though I have never tried. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to