Skip to content

Instantly share code, notes, and snippets.

@berkedel
Created February 17, 2016 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkedel/1f0657fb31b1d9b00105 to your computer and use it in GitHub Desktop.
Save berkedel/1f0657fb31b1d9b00105 to your computer and use it in GitHub Desktop.
Jenkins on OSX

Installation

To install Jenkins, run command below in terminal.

$ brew install jenkins

Run

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

Browse

Now if you open http://127.0.0.1:8080, you will see Jenkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment