I wonder how to change the user starting the jenkins server on my ubuntu.
In the http://[server]:8080/systemInfo
page, I can find the environment variable: USER jenkins
My motivation is to set the user 'git' to rotate the jenkins failure to clone the git project hosted by the user 'git' on the same computer:
hudson.plugins.git.GitException: Command "git clone --progress -o origin ssh:// git@ [server]:22/~/[repo].git /var/lib/jenkins/workspace/[project]" returned status code 128: stdout: Cloning into /var/lib/jenkins/workspace/[project]... stderr: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password)
... after generating ssh keys for the jenkins user and checking the exact settings in Jenkins SSH settings.
Thanks for the help!
source share