How to configure jenkins to run under different user other then tomcat6 account.
I configured it to run a bash script using:
sudo -u ubuntu /opt/script
NOTE: inside the script debug it using whoami and env
I had problems with enviroment, I got the home folder from tomcat user
The next step is to configure the sudoers /etc/sudoers to allow user tomcat6 to run with ubuntu account
#JENKINS USER
Defaults:tomcat6 !requiretty
tomcat6 ALL=(ALL) NOPASSWD: /opt/deploy

Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *