0

I am running a small ubuntu 14.04 where I have installed jenkins and redmine. For redmine I have added a git mirror in

/var/lib/redmine/repos/repo.git

Every time jenkins successfully builds I want it to update the mirror as well so that redmine stays up to date. Well here is my problem. Somehow I can't seem to give jenkins the proper authority to execute the command 'git update remote' it keeps giving me a

remote: error: cannot open FETCH_HEAD: Permission denied

the rights on redmine/repos/* is root:root and I have tried to change this to jenkins:jenkins gitolite:gitolite but nothing seems to help. What can I do to let jenkins execute the command?

Reshad
  • 2,570
  • 8
  • 45
  • 86
  • Maybe this will help: http://stackoverflow.com/questions/13195814/trying-to-git-pull-with-error-cannot-open-git-fetch-head-permission-denied – kkamil Jan 12 '15 at 14:47
  • tried to give FETCH_HEAD write permission and even 775 but it doesn't help.. – Reshad Jan 12 '15 at 14:58
  • Did you clone the repository here `/var/lib/redmine/repos/` as root user? – Victor Jan 12 '15 at 15:32
  • @Victor I did it with the sudo command because it wouldn't let me otherwise.. it gives a permission denied. – Reshad Jan 12 '15 at 15:41

0 Answers0