Install and Configure Jenkins on MAC OS X

Jenkins is The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying, and automating any project.

Step 1: Install Homebrew.

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 .

Homebrew complements macOS (or your Linux system). Install your RubyGems with and their dependencies with .

Type following command in terminal to install Homebrew

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Step 2: Install Jenkins

Once Homebrew is installed, you can run the following command which will download and install the current Long-term support (LTS) version of Jenkins.

brew install jenkins-lts

Step 3: Start the Jenkins server

The next step is to actually start the Jenkins server. You can do that with this command:

brew services start jenkins-lts

This will start the Jenkins server in a few seconds. You can check if it is properly working by visiting

http://localhost:8080/

Step 4: Get the installation password

The installation password is stored in the file located below, please change the directory as per your folder structure.

The path is also mentioned in the “welcome screen”, of Jenkins as shown below.

/Users/kchetan/.jenkins/secrets/initialAdminPassword

We can also use the “cat ”, command directly in the terminal, as below

cat /Users/kchetan/.jenkins/secrets/initialAdminPassword

Step 5: Customize Jenkins

Click on install selected plugins to install a basic set of plugins

Step 5.1: Configure Jenkins

Wait for the installation to finish setting up

Step 6: Starting and stopping Jenkins

To stop the Jenkins server, open any terminal window and enter the command:

brew services stop jenkins-ltsCopy

To start the Jenkins server again, use the command:

brew services start jenkins-ltsCopy

Step 7: Create admin user

Step 8: Configure instace port

Step 9: Setup is complete

Automation Test Engineer by Profession, Traveller by the Weekend