Tom Balou
Tom Balou

Reputation: 71

How to give the right permissions to 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

Upvotes: 5

Views: 4807

Answers (1)

Tom Balou
Tom Balou

Reputation: 71

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

Upvotes: 1

Related Questions