Thanks for the reply Jesse

If I'm understanding this correctly, the way the programming model is
structured around SCM's is you must specify the repo browser you want to
use your descriptor.  The multi-scm plugin seems to have null object for
the repo browser [1].  And as a result we've never seen changes reported
out of it with links to repo browser.  In our world we can make safe
assumptions about what the inner SCM's are, and we also know what repo
browser we want to use.  We forked multi-scm long ago to get this
working with Subversion as well as customize other behaviors.  Now that
we're using some Git, we hit this dependency problem.  We're referencing
the git-plugin from our fork because I want to reuse their repo browser
implementation [2].  I've yet to get changes reported reported out of
multi scm for SVN or Git without something like this:

    @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();
        }

If you guys have any other ideas, much appreciated.  And thanks for all
the responses

cheers

[1]https://github.com/jenkinsci/multiple-scms-plugin/blob/master/src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCMRepositoryBrowser.java
[2]https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/browser/GitRepositoryBrowser.java



On Wednesday, 29 October 2014 16:46:24 UTC-4, Jesse Glick wrote:
>
> On Wed, Oct 29, 2014 at 9:37 AM, Kelly Brownsberger 
> <[email protected] <javascript:>> wrote: 
> > By "removed" it seems to have become a test dependency. 
>
> Yes, absent from the *.hpi build product. 
>
> > Is there a way to make Jenkins not reject plugins having a cycle due to 
> test dependencies? 
>
> Do you mean Maven? No. But if your fork of multi-scms is depending on 
> git-plugin then you are possibly doing something wrong. 
>
> Nicolas wrote: 
> > I think this test case should Be moved to multi-scms plugin 
>
> That is also an option. 
>

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