How to install and configure Jenkins on MacOS

Mayank Jain
3 min readMar 13, 2024

--

Hello Folks, In this blog we will learn how to install and configure jenkins on macOS.

Prerequisites:

MacOS
Brew should be installed. To install brew you can refer here.

Installation:

To install the jenkins run the below command on your terminal

~ brew install jenkins
Jenkins installation

Once above command run successfully you will get the similar output as shown below.

As per the above output you can see jenkins is installed on your MacOS. Now as shown in the above screenshot to run the jenkins we can run the below command

~ brew services start jenkins

the above command will start the jenkins service in the background which will keep running all the time. To run the jenkins only once run the below command on terminal which is show in the above screenshot or you copy and run the below command.

~ /opt/homebrew/opt/jenkins/bin/jenkins --httpListenAddress\=127.0.0.1 --httpPort\=8080
Jenkins Run

Once jenkins is started you will get the similar output as shown in above screenshot. Now to login to jenkins open your browser enter the below URL

http://localhost:8080

or you can just type localhost:8080 in the browser

now it will required the to enter the initial password, you will get the initial password in the logs of when you started jenkins service

or you can run the below command to get the initial password

~ cat /Users/mayankjain/.jenkins/secrets/initialAdminPassword

after entering the password click on continue you will find the similar screen as shown in below screenshot.

now click on Install suggested plugins it will open a new window similar like below shown in screenshot, it will download and install all the required default plugins

after plugin installation completed it will open the window where you need to create admin user of your choice, fill the details and click save and continue.

after filling the details you will receive the similar screen shown below, click on save and finish.

after clicking on save and finish, jenkins setup is completed and you will find the similar screen shown in below screenshot. Click on Start using Jenkins, your jenkins setup is completed.

Below is the final screenshot which you will see after successfully installation and configure.

In the next blog we will learn how to run shell script from jenkins job.

Learn how to set up the Puppet Master and Agent in a virtual box environment here.

Learn RHEL8 custom AMI creation using RHEL Image Builder here.

Learn how to remove the old Linux kernel from RHEL8/CentOS8 here.

Learn how to log commands of all users runs in Linux here.

--

--

Mayank Jain

Skilled DevOps Engineer with 7.5+ years of hands-on experience supporting, automating, & optimizing mission critical deployments in cloud.