Brew services start jenkins-lts Step 4: Configuring Jenkins as an Admin Once Jenkins is successfully started, let us validate if the local Jenkins server is starting in the machine by navigating to the following URL in your browser. Snarky Loon Brewing is a brewery located right off Highway 371 in Jenkins, Minnesota. Snarky Loon's beer is German and Belgian inspired along with a variety of seasonal rotating taps. Our ambiance promotes the outdoors with large open doors, a canopy of hops and a live music patio.

Paste that in a macOS Terminal or Linux shell prompt.
The script explains what it will do and then pauses before it does it. Read about other installation options.
Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.
Homebrew installs packages to their own directory and then symlinks their files into /usr/local.
Homebrew won’t install files outside its prefix and you can place a Homebrew installation wherever you like.
It’s all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.
Homebrew complements macOS (or your Linux system). Install your RubyGems with gem and their dependencies with brew.
“To install, drag this icon…” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software.
Homebrew was created by Max Howell. Website by Rémi Prévost, Mike McQuaid and Danielle Lalonde.
Jenkins is Continuous Integration automation control software that allows developers to automate repetitive parts of the software development process. While Jenkins can be installed on many operating systems, this guide will focus on the macOS install process.
This guide assumes you have a fresh install of the latest macOS along with Xcode, and that you don’t already have a Jenkins master server. In a future guide, we will add Jenkins slave servers to the setup.
There are a few ways to install Jenkins on macOS – we’re going to install it using a package manager for macOS called Homebrew. If Homebrew is already installed then skip the next step (check by running “brew -v” in Terminal).
Let’s install Homebrew by opening Terminal and entering the following command (this command is all one line):
The installer will give you a list of things it’s going to do, just press enter and Homebrew will be installed.
Now that you have Homebrew installed, you can type check to see if there are any recommendations for your setup:
For example, you may have an outdated version of Xcode, in which case you may want to upgrade that:
Before installing Jenkins, we need to install a specific version of Java required by Jenkins – it may ask you for your password to set permissions properly:
Now we can install Jenkins – we’re going to install the LTS (long-term support version, which is typically more stable):

We want the Jenkins web interface to be accessible from anywhere (not just on the local machine), so we’re going to open up the config file:
Find this line:
And change it to:
(to exit out of nano after making the change, hit Ctrl+X, hit Y to save the changes, and hit Enter)
Let’s start Jenkins and set it to run automatically when the system is rebooted:
The rest of the configuration will mostly be done in a browser on the local machine. Open up Safari and visit http://localhost:8080 , where we will see a screen like this:
Grab the red highlighted text and in Terminal use the ‘cat’ command to display the initial password:
Copy that password and paste it into the Unlock Jenkins page. We’re done with Terminal, feel free to close it.
We can now Customize Jenkins and install some plugins. For now we’re going to choose Install suggested plugins.
The installer now downloads and installs the plugins:
Create an admin user and Save and Continue:
Set the URL that users will be using to log in to Jenkins. If users will be connecting to the server remotely, it’s best to set up an A record (like jenkins.yourdomain.com) and set the Jenkins URL to http://jenkins.yourdomain.com:8080. Click Save and Finish:
Setup is complete – click Start using Jenkins.
The rest of the configuration will be done within the Jenkins web interface. You can now create jobs, manage Jenkins and install new plugins, and add new users.
To start Jenkins and make sure it runs after a reboot:
To restart the Jenkins service and make sure it runs after a reboot:
Note: If you didn’t install the LTS version of Jenkins, don’t include the “-lts” portion of the above commands.
