Fails to parse git URL when repo uses SSH URL
Closed this issue · 3 comments
When running jx admin operator
inside a repository cloned using the SSH URL, the following error is returned:
error: failed to ensure the git URL is valid: failed to parse git URL git@github.com:user/repository-name.git: parse git@github.com:user/repository-name.git: first path segment in URL cannot contain colon
This can be worked around by using --url https://github.com/user/repository-name.git
If this an intended limitation (i.e. Jenkins X cannot access the git repo using the SSH URL), then the documentation may need to be updated to clarify this. If not, then the git URL parsing may need to be updated.
Notes:
- It looks like the underlying error comes from
url.Parse
because thegit@github.com
is not a valid URL
@jmmk extracted from https://jenkins-x.io/v3/admin/platforms/on-premises/#getting-started:
git clone the new repository via HTTPS and cd into the git clone directory
so clone via HTTP is a must
Yeah, https is a must and the documentation says as much. Closing.
/close
@msvticket: Closing this issue.
In response to this:
Yeah, https is a must and the documentation says as much. Closing.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository.