That's a good point. I'll look into your original suggestion to make the 
Git plugin extensible.

Thanks!

On Thursday, May 9, 2013 11:01:59 AM UTC-7, Kevin Fleming wrote:
>
> Possibly, although I don't know if that would work when the Multiple SCM 
> plugin is used and multiple Git repositories are used by the project.
>
> ----- Original Message -----
> From: [email protected] <javascript:>
> To: [email protected] <javascript:>
> Cc: Kevin Fleming (BLOOMBERG/ 731 LEXIN) <javascript:>
> At: May 9 2013 13:30:33
>
> There is the github URL parameter (link below). It could be used to 
> express the relationship to the github repo when the Git SCM URI is a 
> mirror.
>
> The logic when interacting with github would look like:
>
> 1. Try to parse the github information from the Git SCM URI (as it 
> currently does).
> 2. If that fails, then try to use the github.projectUrl.
> 3. If that fails, stop.
>
> Does that seem like a reasonable solution?
>
>
> https://github.com/jenkinsci/github-plugin/blob/master/src/main/java/com/coravy/hudson/plugins/github/GithubProjectProperty.java
>
>
> On Thursday, May 9, 2013 8:23:26 AM UTC-7, Kevin Fleming wrote:
>>
>> That's an interesting question. The GitHub plugin doesn't provide a 
>> Jenkins SCM, but it does read the Git SCM URls from projects to interact 
>> with GitHub. Doing what you are talking about would be a bit complex, as 
>> logically the 'alternate location' URL (that points to GitHub) would be 
>> configured alongside the existing URL, but that's handled by the Git plugin 
>> and it shouldn't have any knowledge of GitHub. One way to approach this 
>> would be to modify the Git plugin to provide an extension point that the 
>> GitHub plugin could implement, that would allow for additional data to be 
>> captured/stored/retrieved as part of the Git SCM details for a project.
>>
>> ----- Original Message -----
>> From: [email protected] <http://javascript:>
>> To: [email protected] <http://javascript:>
>> At: May 8 2013 19:17:18
>>
>> As far as I can tell, the GitHub plugin does not support working with 
>> mirrors of GitHub repos. For example, if 
>> git@my-internal-server:mirrors/my-repo.git 
>> is set as the SCM remote for a project and it is a mirror of 
>> https://github.com/thomasvandoren/my-repo.git, there is no way to expose 
>> that relationship to the GitHub plugin.
>>
>> Would it make sense to add a project level configuration value that 
>> provides a github remote location? The plugin would then look at that value 
>> and fall back on the configured remote whenever it interacts with GitHub 
>> APIs.
>>
>> Thanks!
>>
>>  -- 
>> 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] <http://javascript:>.
>> 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 [email protected] <javascript:>.
> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to