Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jx pipeline start asks for GitHub credentials when used with GitLab #424

Open
svilenvul opened this issue Feb 24, 2022 · 2 comments · May be fixed by #459
Open

jx pipeline start asks for GitHub credentials when used with GitLab #424

svilenvul opened this issue Feb 24, 2022 · 2 comments · May be fixed by #459

Comments

@svilenvul
Copy link

We have installed JX 3 with GitLab on premise and we want thank all of you for your great work!

We observed one small issue with the jx pipeline start command which is not functioning as expected.

We are using the following command jx pipeline start --git-username .... --git-token ..
After that we are selecting a repo from our GitLab (from the interactive CLI).
In the next step we are asked for GitHub credentials and the command fails with:

ERROR: error creating a mirror clone: exit status 128 Cloning into bare repository '/var/tmp/gitcache490222991/our-organization/java-project-example'...
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/our-organization/java-project-example/'
error: failed to calculate in repo configuration: failed to load trigger config for repository our-organization/java-project-example for ref : failed to create repo client: error creating a mirror clone: exit status 128 Cloning into bare repository '/var/tmp/gitcache490222991/our-organization/java-project-example'...
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/our-organization/java-project-example/'

cc @ankitm123

@chrislovecnm
Copy link
Contributor

I am getting the exact same error :(

@cameronbraid
Copy link
Contributor

Same thing when using gitea.

jx pipeline start will show me a list of projects, but then when I choose one I get :

ERROR: error creating a mirror clone: exit status 128 Cloning into bare repository '/var/tmp/gitcache1635502321/drivenow/core'...
remote: Repository not found.
fatal: repository 'https://github.com/drivenow/core/' not found

So its using the correct git server when getting a list of projects, but using the wrong server when cloning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants