[Jenkins] 2. Change Default User Of Jenkins

(1. ) use bellow command to check your group and user

id

example:

my user is otis, group is staff.

(2.) stop Jenkins

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist   

(3. ) open '/Library/LaunchDaemons/org.jenkins-ci.plist' file to modify Jenkins default group and user.

(4.) Use below commands to change the permissions of org.jenkins-ci.plist file

sudo chown -R otis /var/log/jenkins  
sudo chown -R otis:staff /Users/Shared/Jenkins/ 
sudo chmod 600 /Library/LaunchDaemons/org.jenkins-ci.plist 
sudo chown root /Library/LaunchDaemons/org.jenkins-ci.plist                  

(5.) Restart Jenkins

sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist             

Last updated