-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
-
Jenkins ver. 2.179
ubuntu 18.0
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%2520git@bitbucket.org:ap2406/batooni.git
> git init /var/lib/jenkins/workspace/bitbucket # timeout=10
Fetching upstream changes from git%252520clone%252520git@bitbucket.org:ap2406/batooni.git
> git --version # timeout=10
> git fetch --tags --progress git%252520clone%252520git@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%252520git@bitbucket.org:ap2406/batooni.git +refs/heads/:refs/remotes/origin/" returned status code 128:
stdout:
stderr: git%252520clone%252520git@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