File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jenkins and git over windows7 permission denied

 
Adrien Ruffie
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I try to checkout a git project in one Jenkins build, but the
following error occurs:

Any one have an idea ?

I think the problem is linked to my RSA public key, but I have copy/
paste in “ssh public keys” into github.com and my account
I have use the id_rsa.pub into my C:\Users\a.ruffie\.jenkins

Thank for reading

Best regards Adrien

Démarré par l'utilisateur anonymous
Building in workspace C:\Users\a.ruffie\.jenkins\workspace\game-of-
life-default
Checkout:game-of-life-default / C:\Users\a.ruffie\.jenkins\workspace
\game-of-life-default - hudson.remoting.LocalChannel@4c032069
Using strategy: Default
Checkout:game-of-life-default / C:\Users\a.ruffie\.jenkins\workspace
\game-of-life-default - hudson.remoting.LocalChannel@4c032069
Cloning the remote Git repository
Cloning repository origin
ERROR: Error cloning remote repo 'origin' : Could not clone
git@github.com:adryen31/game-of-life.git
hudson.plugins.git.GitException: Could not clone
git@github.com:adryen31/game-of-life.git
at hudson.plugins.git.GitAPI.clone(GitAPI.java:245)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1029)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:970)
at hudson.model.AbstractProject.checkout(AbstractProject.java:
1195)
at hudson.model.AbstractBuild
$AbstractRunner.checkout(AbstractBuild.java:576)
at hudson.model.AbstractBuild
$AbstractRunner.run(AbstractBuild.java:465)
at hudson.model.Run.run(Run.java:1409)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at
hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: hudson.plugins.git.GitException: Error performing command:
C:\Java\Git\bin\git.exe clone --progress -o origin
git@github.com:adryen31/game-of-life.git C:\Users\a.ruffie\.jenkins
\workspace\game-of-life-default
Command "C:\Java\Git\bin\git.exe clone --progress -o origin
git@github.com:adryen31/game-of-life.git C:\Users\a.ruffie\.jenkins
\workspace\game-of-life-default" returned status code 128: Cloning
into 'C:\Users\a.ruffie\.jenkins\workspace\game-of-life-default'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776)
at hudson.plugins.git.GitAPI.access$000(GitAPI.java:38)
at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:241)
at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:221)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitAPI.clone(GitAPI.java:221)
... 12 more
Caused by: hudson.plugins.git.GitException: Command "C:\Java\Git\bin
\git.exe clone --progress -o origin git@github.com:adryen31/game-of-
life.git C:\Users\a.ruffie\.jenkins\workspace\game-of-life-default"
returned status code 128: Cloning into 'C:\Users\a.ruffie\.jenkins
\workspace\game-of-life-default'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:771)
... 18 more
Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1041)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:970)
at hudson.model.AbstractProject.checkout(AbstractProject.java:
1195)
at hudson.model.AbstractBuild
$AbstractRunner.checkout(AbstractBuild.java:576)
at hudson.model.AbstractBuild
$AbstractRunner.run(AbstractBuild.java:465)
at hudson.model.Run.run(Run.java:1409)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at
hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic