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
please help
HI @pritam
Welcome to the Community!
While providing/configuring bitbucket cloud repository URL to Jenkin, please add the Username & password into it
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, please add the password besides to Username and try to check.
like Username:password
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.