[JIRA] (JENKINS-57733) ERROR: Error cloning remote repo 'origin' from jenkins to bitbucket

7 views
Skip to first unread message

ashok@batooni.com (JIRA)

unread,
May 29, 2019, 5:18:02 AM5/29/19
to jenkinsc...@googlegroups.com
ashok patidar created an issue
 
Jenkins / Bug JENKINS-57733
ERROR: Error cloning remote repo 'origin' from jenkins to bitbucket
Issue Type: Bug Bug
Assignee: Mark Waite
Components: bitbucket-plugin, git-plugin
Created: 2019-05-29 09:17
Environment: Jenkins ver. 2.179
ubuntu 18.0
Priority: Critical Critical
Reporter: ashok patidar

Hello Team,

I am new in jenkin, whiles connecting bitbucket by jenkins i ma getting following error.
I made connection by ssh and put public key in bit bucket and private key in jenkins.
Please help me.

Started by user
 

Batooni admin
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/bitbucket
using credential root
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository git%2520clone%252...@bitbucket.org:ap2406/batooni.git
> git init /var/lib/jenkins/workspace/bitbucket # timeout=10
Fetching upstream changes from git%252520clone%2525...@bitbucket.org:ap2406/batooni.git
> git --version # timeout=10
> git fetch --tags --progress git%252520clone%2525...@bitbucket.org:ap2406/batooni.git +refs/heads/:refs/remotes/origin/
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress git%252520clone%2525...@bitbucket.org:ap2406/batooni.git +refs/heads/:refs/remotes/origin/" returned status code 128:
stdout:
stderr: git%252520clone%2525...@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:655)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
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:1818)
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'
ERROR: Step ‘Archive the artifacts’ failed: No artifacts are configured for archiving.
You probably forgot to set the file pattern, so please go back to the configuration and specify it.
If you really did mean to archive all the files in the workspace, please specify "**"
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 6:39:02 AM5/29/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 6:39:03 AM5/29/19
to jenkinsc...@googlegroups.com
 

Please use the Jenkins mailing list, the Jenkins Gitter channel, or the Jenkins IRC channel to request help from other users. There are many more people that read those locations and are able to assist with questions for new users. There are very few people that watch the Jenkins bug database for git plugin bug reports.

In this case, you've entered too much information as the URL for the remote git repository. You entered:

git clone  g...@bitbucket.org:ap2406/batooni.git

as the URL for the remote git repository. You should have entered:

g...@bitbucket.org:ap2406/batooni.git
Change By: Mark Waite
Status: Open Fixed but Unreleased
Resolution: Not A Defect

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 6:43:02 AM5/29/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages