Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give the right permissions to jenkins?

Tags:

svn

jenkins

I have Jenkins installed on an ubuntu server. Jenkins is under tomcat6, with all files belonging to the user and group tomcat6.

When I ask jenkins to update a directory using svn before building a job, it seems to have right access problem. The directory I try to upload belongs to the group www-data which contains the user tomcat6. I set the rights 775 on it, and I get the error below. If I set the rights 777, it works just fine.

How can I know which user does jenkins uses to do the svn update, and give it the correct rights, as it seems that it isn't tomcat6 ?

ERROR: Failed to update svn+ssh://myserver/myrepository
org.tmatesoft.svn.core.SVNException: svn: E200030: READONLY
like image 381
Tom Balou Avatar asked Nov 13 '22 07:11

Tom Balou


1 Answers

Finally, I did found what the problem was. The project files as to be owned by the user tomcat6 in order to allow jenkins to update files on it. Seems that just belonging to the group which own the files isn't enough, even with 775 rights. So a simple sudo chown -R tomcat6:mygroup myproject did solve the update problem

like image 180
Tom Balou Avatar answered Nov 14 '22 23:11

Tom Balou