Open jmmk opened 3 years ago
+1 for this issue. I'm attempting a new Jenkins X test setup with minikube and an in-house BitBucket server and see the exact same issues. It is not clear how to proceed.
This line appears to be the issue, at least for me: https://github.com/jenkins-x/jx-helpers/blob/b2e95cf9766d08df2e2378ef1efe181874ce9208/pkg/kube/jxenv/env.go#L428
The URL is not constructed correctly. The error message reports that the URL is ***/scm/bitbucket/jx3-minikube.git
, but it should really be ***/scm/bitbucket/<bitbucket group name>/jx3-minikube.git
.
This may be three separate issues: 1 - confusing workflow, 2 - fails with Bitbucket, 3 - Git SSH support
I'm operating in a new Jenkins X installation running locally in minikube on macOS. To get things running, I had to input a username and token giving access to the "cluster git repository", which was clear in the documentation and makes sense.
When attempting to create a new project with
jx project quickstart
, the authentication prompts did not make sense. Here was the first:Then the next prompts:
~/.ssh/config
and could potentially be pulled/stored in a secret the same way a user/pass mightgithub.com
?I decided to try
jx project
instead ofjx project quickstart
, andImport code from a git repository
.If I use a git SSH URL like
git@bitbucket.org/user/project.git
, it fails witherror: failed to create authenticated git URL: failed to parse URL git@bitbucket.org:traackr/influencer-dashboard.git: parse git@bitbucket.org:user/project.git: first path segment in URL cannot contain colon
(similar to the issue I reported here: https://github.com/jenkins-x/jx-admin/issues/160).If I use a Bitbucket HTTPS URL, I see this failure:
In summary: