Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to clone the repo but it showing error on jenkins ?

pritam August 12, 2018

when i paste the repo url in jenkins in source code managment 

Failed to connect to repository : Command "git ls-remote -h https://pritamcc@bitbucket.org/xxxxxxxxx/xxxxxxxxx.git HEAD" returned status code 128:
stdout: 
stderr: remote: Invalid username or password. If your organization manages your account or you've enabled two-step verification, create an app password to log in: https://confluence.atlassian.com/x/9DJmMQ
fatal: Authentication failed for 'https://pritamcc@bitbucket.org/xxxxxxx/xxxxxx.git/'

 

Here is the screenshots 

Screen Shot 2018-08-12 at 11.59.30 PM.png

 

please help

 

1 answer

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2018

HI @pritam

Welcome to the Community!

While providing/configuring bitbucket cloud repository URL to Jenkin, please add the Username  & password into it

pritam August 12, 2018

As shown in screen shots  pritamcc is my username or name displaying on view Profile is username ?

Earlier I have setup jenkins in mac but never asked for authentication

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2018

Ok, please add the password besides to Username and try to check.

like Username:password

pritam August 12, 2018

 

 Screen Shot 2018-08-13 at 11.16.54 AM.png 

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2018

HI @pritam

There could be multiple reasons for this..so try with the below options.

1. unset the credentials..using prompt/terminal.

git config --global --unset credential.helper
git config --system --unset credential.helper

2. Try to clear the Jenkins workspace directory.

Like Jens Matzkeit likes this
pritam August 13, 2018

still getting same error

+refs/heads/*:refs/remotes/origin/*" returned status code 143:
stdout: 
stderr: 
 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:420)
 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:629)
 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)
 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
 at hudson.scm.SCM.checkout(SCM.java:504)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
 at hudson.model.Run.execute(Run.java:1798)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:97)
 at hudson.model.Executor.run(Executor.java:429)
ERROR: Error cloning remote repo 'origin'
Finished: FAILURE

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events