I just created a new SSH key in id_rsa_pub for LENOVO-PC$ but I got an 
error associated with access rights - permission denied(publickey)


Caused by: hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Command "C:\Program Files (x86)\Git\bin\git.exe fetch --tags --progress 
g...@bitbucket.org:test/test +refs/heads/*:refs/remotes/origin/*" returned 
status code 128:
stdout: 
stderr: Permission denied (publickey).
fatal: Could not read from remote repository.

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



On Tuesday, 26 August 2014 10:56:14 UTC+1, Yavor Vrachev wrote:
>
> Hello,
>
> I have added my SSH key to my profile in Bitbucket, I have also added a 
> hook to the repository with endpoint: http://test.name:api-token@my-pc:8080
>
> I have succesfully pushed changes from Git to Bitbucket but when I try to 
> build a Jenkins project I get the error:
>
> Started by user test.name <http://lenovo-pc:8080/user/yavor_vrachev>
> Building in workspace C:\Program Files (x86)\Jenkins\workspace\test
>  > C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # 
> timeout=10
> Fetching changes from the remote Git repository
>  > C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url 
> g...@bitbucket.org:test/test.git # timeout=10
> Fetching upstream changes from g...@bitbucket.org:test/test.git
>  > C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10
> using GIT_SSH to set credentials 
>  > C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress 
> g...@bitbucket.org:test/test +refs/heads/*:refs/remotes/origin/*
> FATAL: Failed to fetch from 
> g...@bitbucket.org:test/test.githudson.plugins.git.GitException 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  Failed to fetch from g...@bitbucket.org:test/test.git
>       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:624) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method>
>       at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:856) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method>
>       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
>       at hudson.model.AbstractProject.checkout(AbstractProject.java:1255) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
>       at 
> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
>       at hudson.model.Run.execute(Run.java:1740) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
>       at hudson.model.ResourceController.execute(ResourceController.java:88) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>       at hudson.model.Executor.run(Executor.java:233) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
> Caused by: hudson.plugins.git.GitException 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  Error performing git command
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1416)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials&entity=method>
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200&entity=method>
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute&entity=method>
>       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method>
>       ... 10 more
> Caused by: java.lang.InterruptedException
>       at java.lang.ProcessImpl.waitFor(Unknown Source)
>       at hudson.Proc$LocalProc.join(Proc.java:319)
>       at hudson.Proc.joinWithTimeout(Proc.java:168)
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1403)
>       ... 14 more
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to