To install Jenkins, run command below in terminal.
$ brew install jenkins
To run manually,
$ java -Dmail.smtp.starttls.enable=true -jar /usr/local/opt/jenkins/libexec/jenkins.war --httpListenAddress=127.0.0.1 --httpPort=8080
If you want to run Jenkins on startup, you need to link .plist
files to OSX's Launch Agents.
$ ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents
To start it up now or load Jenkins,
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
To stop or unload,
$ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
Now if you open http://127.0.0.1:8080, you will see