Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to solve Authentication failed errorin jenkins ?

pritam August 13, 2018

When I paste bitbucket URL in jenkins then it shows this  error 

Failed to connect to repository : Command "git ls-remote -h https://pritamcc@bitbucket.org/xxxxxxx/xxxx.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/xxxx.git'

 

 

When I provide the credentials with username and password

+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

 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events