1
votes

I'm new to jenkins.

I got jenkins intalled with

...
sudo apt-get install jenkins

on a linux system.

I've got a project(s) with svn checkout.

enter image description here

Every time when jenkins checkout the svn-repo, the files ownership get root ownership ( root / root ).

But the jenkins is not an root user.

In some projects it make "mvn clean" impossible, or delete a folder.

I google about it

svn checkout as root

can do this.

I think about it, that i will run jenkins (service) as another user.

Manualy i set the workspace folder in jenkins to jenkins user / group. But in some project after svn update is get back to "root / root" ownership.

I don't know the real reason for "svn as root". I look for the answer, and I would appreciate help

1

1 Answers

0
votes

It is very, very unlikely the checkout would create files owned by root if Jenkins was not running as root. Practically the only explanation is that Jenkins really running as root and you did not check it from a reliable source. The user which Jenkins reports under $JENKINS_URL/systemInfo might be wrong. (How did you check Jenkins is not running as root?)

Please check again by running something like

ps axu | grep java

or

top

and look for the java process and see who is the user running it.

How exactly to fix your installation depends how you installed Jenkins. Please provide more information if you need more help.