-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Ubuntu 12.10
I have several private GitHub repos that I need to build. I'm using deployment keys and a config file for SSH to let the Jenkins user know what key to use for each repo. In order to get Jenkins to work with GitHub in this fashion, I had to change the repository URL to point to the host alias. So, it looks like:
git@myalias.github.com:myorg/repo.git
This allows me to initiate a build from Jenkins, which is able to checkout the code from github successfully.
I need to initiate builds from GitHub when code is committed. I setup everything and tested the webhook. I saw the payload come in successfully in the logs. When I commit code to the repo, I get the following error: "FINE: Skipped <repo> because it doesn't have a matching repository."
If I change my repository URL back to git@github.com:myorg/repo.git I get a match on the repo after code commit, but then the jenkins user can't checkout the code from GitHub because it doesn't know what SSH key to use.
Is there a way to get this to work? Thanks.
- is duplicated by
-
JENKINS-27477 github-plugin does not work with "insteadOf" in git url
-
- Closed
-
-
JENKINS-31797 GitHub plugin does not update build status when repository is accessed with a custom SSH configuration entry
-
- Closed
-
-
JENKINS-19463 Jenkins doing nothing after hook, with different git host
-
- Closed
-
[JENKINS-18298] Jenkins (Github Plugin) post-commit hook fails to build with ssh config aliases
Description |
Original:
I have the same issue as closed bug #594. There wasn't a resolution in the follow-up that resolves this issue for me. I have several private GitHub repos that I need to build. I'm using deployment keys and a config file for SSH to let the Jenkins user know what key to use for each repo. In order to get Jenkins to work with GitHub in this fashion, I had to change the repository URL to point to the host alias. So, it looks like: git@myalias.github.com:myorg/repo.git This allows me to initiate a build from Jenkins, which is able to checkout the code from github successfully. I need to initiate builds from GitHub when code is committed. I setup everything and tested the webhook. I saw the payload come in successfully in the logs. When I commit code to the repo, I get the following error: "FINE: Skipped <repo> because it doesn't have a matching repository." If I change my repository URL back to git@github.com:myorg/repo.git I get a match on the repo after code commit, but then the jenkins user can't checkout the code from GitHub because it doesn't know what SSH key to use. Is there a way to get this to work? Thanks. |
New:
I have several private GitHub repos that I need to build. I'm using deployment keys and a config file for SSH to let the Jenkins user know what key to use for each repo. In order to get Jenkins to work with GitHub in this fashion, I had to change the repository URL to point to the host alias. So, it looks like: git@myalias.github.com:myorg/repo.git This allows me to initiate a build from Jenkins, which is able to checkout the code from github successfully. I need to initiate builds from GitHub when code is committed. I setup everything and tested the webhook. I saw the payload come in successfully in the logs. When I commit code to the repo, I get the following error: "FINE: Skipped <repo> because it doesn't have a matching repository." If I change my repository URL back to git@github.com:myorg/repo.git I get a match on the repo after code commit, but then the jenkins user can't checkout the code from GitHub because it doesn't know what SSH key to use. Is there a way to get this to work? Thanks. |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Link |
New:
This issue is duplicated by |
Link |
New:
This issue is duplicated by |
Link |
New:
This issue is duplicated by |
Attachment | New: 18298_proposal.png [ 32350 ] |
Attachment | Original: 18298_proposal.png [ 32350 ] |
Comment |
[ Also interested in this. Curious how this isn't a bigger issue (measured on the number of comments/votes). If it is a lot of effort to resolve entries in the ssh-config (without breaking cross platform support), maybe an additional setting per Jenkins job could do the trick? Either a checkbox to ignore the host for the current job (like in Alex Ehlke's fork) or a text input to specify the Github URL that will be posted to Jenkins. I am not familiar with writing Jenkins plugins so this might be impractical, but something like this (with a more accurate description, though): !18298_proposal.png|thumbnail! ] |
Workflow | Original: JNJira [ 149605 ] | New: JNJira + In-Review [ 177413 ] |