Set up jenkins server on Mac

  1. create an admin user named “jenkins” 
  2. login as the new user jenkins
  3. Install Homebrew by running the command in Terminal:   
    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
  4. install wget
    brew install wget
  5. install Jenkins
    brew install jenkins
  6. start jenkins automatically on boot
    cp /usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist /Library/LaunchAgents/
  7. manually start jenkins
    launchctl load /Library/LaunchAgents/homebrew.mxcl.jenkins.plist
  8. manually stop jenkins
    launchctl unload/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
  9. use jenkins
    browse http://localhost:8080

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s