I'm trying to configure Jenkins on my Mac Mini in order to pull the code of my iPhone App from my BitBucket repository. In the "Xcode plugin" configuration area I have tried to add the git address of my project but it keeps on failing. After a research it looks like I have to use an ssh deployment key to connect Bitbucket and Jenkins. What I have done so far:
ssh-keygen -t rsa
pbcopy < /Users/jenkins/.ssh/id_rsa.pub
and I added this SSH key to my BitBucket profile.
Unfortunately it still doesn't work.
Can anybody explain in detail the whole process?
Ok maybe I found the solution here: http://colonelpanic.net/2011/06/jenkins-on-mac-os-x-git-w-ssh-public-key/
Remember to re-generate the keys with:
to copy it with:
to upload it in BitBucket and run:
in order to add bitbucket among the known hosts
I think the problem is in the permission for git. In the error log the command which is failing is
If I try to run it in the console I get this:
so if I run it in SUDO mode it works.
How can I give to Jenkings the permission to run git in Admin mode?