-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 1.613
GitHub 1.11.3
The github jenkins documentation at https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin says:
```
When creating a job, specify that is connects to git. Under "Github project", put in: git@github.com:Person/Project.git Under "Source Code Management" select Git, and put in git@github.com:Person/Project.git
```
When we try git@github.com:<company>/<project>.git it does not work. However, https://github.com/<company>/<project> works for us.
This causes a problem with push notifications, though. I get the following messages in the logs:
```
May 13, 2015 4:05:26 PM FINE com.cloudbees.jenkins.GitHubWebHook
Considering to poke webserver_test_master
May 13, 2015 4:05:26 PM FINE com.cloudbees.jenkins.GitHubWebHook
Skipped webserver_test_master because it doesn't have a matching repository.
```
Presumably there are no names found in the addRepositories method in https://github.com/jenkinsci/github-plugin/blob/master/src/main/java/com/cloudbees/jenkins/GitHubRepositoryNameContributor.java
Incidentally, it would be very helpful to have a logger in that function which details what URLs it is parsing and what names it gets (if any).
Thanks for the very useful tool!
Here is a lot more information about what is happening.
github allows case insensitive matching, so both of these work
https://github.com/<companyname>/<project>
https://github.com/<CompanyName>/<project>
assuming the name on github is actually CompanyName, github then sends back the URL
https://github.com/<CompanyName>/<project>
The plugin rejects the match if the URL entered was
https://github.com/<companyname>/<project>
I suggest allowing case insensitive matching on companyname so future users don't spend hours debugging this problem.