These are incomplete instructions; I don't have the time to reproduce the procedure exactly.
- Create a jenkins user. Make the user an admin.
- Use the official Jenkins installer from the jenkins.org website.
# 1. Install /Users/jenkins/.bashrc and then symlink:
$ cd /Users/jenkins
$ ln -s .bashrc .bash_profile
# 2. Create the log file
$ touch Library/Logs/jenkins.log
# 3. Create the ~/bin/ dir and install the jenkins-runner.sh
$ chmod +x ~/bin/jenkins-runner.sh
# 4. Change permissions on /Application/Jenkins/
$ sudo chown -R jenkins:admin /Application/Jenkins
# 5. Remove the LaunchDaemon
$ sudo launchctl stop org.jenkins-ci
$ sudo launchctl unload -F /Library/LaunchAgents/org.jenkins-ci.plist
# 6. Find all the artifacts of the original install and remove.
* /Library/Application Support/Jenkins
* /Library/LaunchDaemons/org.jenkin-ci.plist
* There is preferences plist
* There is a run script
# 7. Install LaunchAgent
$ ls -al /Library/LaunchAgents/org.jenkins-ci.plist
-rw-r--r-- 1 root wheel 855 Nov 17 11:30 /Library/LaunchAgents/org.jenkins-ci.plist
$ sudo launchctl load -wF /Library/LaunchAgents/org.jenkins-ci.plist