I'm not a big fan of the shared plugin model. As a user, I've gotten bitten way to many times by compatibility problems this causes.
-- Dean On 12/6/12 2:16 PM, "Christoph Kutzinski" <ku...@gmx.de> wrote: >Sounds like this makes sense. >I guess this code should be generic enough, so that any SCM plugin could >profit from it. I've something similar in the Git-plugin - which >probably also originated from the svn-plugin, but has since then diverged. > >Another alternative would be to offer a shared 'abstract scm plugin' >which could be used by all SCM plugins - similar to the >instant-msg-plugin which is used by IRC, Jabber and more. >Have you thought about that approach? It offers IMO a lot of advantages >over the having-it-in-core approach. Most notably to offer bug fixes/new >feature without the need to update the core. > > >cheers >Kutzi > >Am 06.12.2012 22:54, schrieb Dean Yu: >> Hi folks, specifically rpetti and kutzi, >> I'd like to do some work to provide a post-commit hook for the >> Perforce plugin[1]. Looking through that code base, it's looks like it >> started life modeled on the Subversion plugin, but it has diverged >> significantly. I'm not going to attempt to rationalize the two, but in >> an effort to re-use some code, I propose refactoring: >> >> hudson.scm.RevisionParameterAction >> hudson.scm.SubversionRepositoryStatus >> >> out of the Subversion plugin back into Jenkins core, so that some logic >> can be shared with the Perforce plugin. This would of course mean that >> new versions of both plugins would require a newer version of core to >> take advantage of the refactored code. (Obviously, this could be done in >> stages, so it doesn't happen all at once.) >> >> Any objections? >> >> -- Dean >> >> >> [1] JENKINS-12101 <https://issues.jenkins-ci.org/browse/JENKINS-12101> >> >