I didn't see a great way to implement what I want, so this is the simplest
stopgap to fill my need.

It is a separate plugin for the reason Jesse mentioned--to not add a git
dependency to a generic plugin.

Long-term, it seems like it would be nice if builds had a method to return
the branch(es) associated with a build without needing any SCM
dependencies. I'm not sure that a generic interface is possible across all
SCM systems, though.

In lieu of that, I think it would be helpful to write a plugin that has
optional dependencies on several SCM plugins and provides the branch
information for a build based on the SCM plugins it finds at runtime. Would
such a plugin be possible? If so, then copyartifact could come to depend on
it, or another plugin similar to copyartifact-git could expose a selector
based on it.


On Wed, Feb 19, 2014 at 5:25 PM, Richard Bywater <rich...@byh2o.com> wrote:

> Woops my bad - the way I read the description was that the plugin was a
> "clone" of the copy artifact plugin rather than just an additional selector
> for the copy artifact plugin.
>
> Apologies for the noise :)
> Richard.
>
>
> On Thu, Feb 20, 2014 at 1:18 PM, Jesse Glick <jgl...@cloudbees.com> wrote:
>
>> On Wed, Feb 19, 2014 at 7:11 PM, Richard Bywater <rich...@byh2o.com>
>> wrote:
>> > better to update the existing "copy artifact" plugin with your new
>> functionality
>>
>> No, adding a Git dependency to this generic plugin would not be a good
>> idea.
>>
>> --
>>
>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-dev/lHF6peILIFA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to