Home > HowTo, Linux > Run jenkins with another user

Run jenkins with another user

December 13th, 2013 Leave a comment Go to comments

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

Defaults:tomcat6 !requiretty
tomcat6 ALL=(ALL) NOPASSWD: /opt/deploy

Categories: HowTo, Linux Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.