Continuous Integration, Delivery and Deployment (CI/CD) in macOS using Jenkins and Fastlane for iOS and Android — Part 2

Part 2: CI/CD Environment Setup, Install and Configure Jenkins in macOS

Mohammad Mahmudul Hasan
4 min readAug 3, 2021


If you missed the previous part of this tutorial, please follow the link below:

All About CI/CD, top benefits and choosing appropriate CI/CD

Jenkins setup in macOS

There are several ways we can install Jenkins in macOS. In this tutorial we will use Homebrew. So if you don’t have Homebrew installed already in your machine.

Run this command to install Homebrew and Use this link for more instructions.

/bin/bash -c "$(curl -fsSL"

Step 1: Install Jenkins

Run the following command to install Jenkins. For more command you can check this link. There are two different command for two different Jenkins release, Stable (LTS) and regular (Weekly). In this Tutorial we will use Regular release version.

//Long-Term Support (LTS) stable release
brew install jenkins-lts
brew update && brew install jenkins
Jenkins Installation

See the above screenshoot carefully it saying :

Note: When using launchctl the port will be 8080.

To have launchd start jenkins-lts now and restart at login:

brew services start jenkins-lts

Or, if you don’t want/need a background service you can just run:


Step 2: Start Jenkins

The next step is to actually start the Jenkins server as it is informed us in summary after installation. Please go ahead and run this command below:

// For Start
brew services start jenkins-lts

Some other command for Stop And Restart Jenkins Service:

//For Stop
brew services stop jenkins-lts
//For Restart
brew services restart jenkins-lts

This will start the Jenkins server in a few seconds. You should now be able to access Jenkins by visiting http://localhost:8080/ which is your jenkins local address.

Step 3: Get Initial Admin Password

Now need to unlock Jenkins using the initialAdminPassword. Please follow the screen below:

Starting Page

Run the command below to get the password. Copy and paste it as mentioned in above screen:

cat /Users/YOUR_USER_NAME/.jenkins/secrets/initialAdminPassword
Initial Admin Password

Step 4: Install Plugins

The next step asks which plugins we would like to install. In this tutorial we will select ‘Install suggested plugins’ option which will cover the most important plugins. Don’t worry about this, you can easily add or remove plugins later by going to ‘Manage Jenkins > Manage Plugins’

Step 5: Create First Admin User

Please follow the instructions as mentioned in the screen and create an Admin User. Make sure you write down the username and password as you will need them later.

If you don’t want to create user you can ‘Skip and Continue as admin’ and go to admin > Configure in order to change the initial password.

The next step is to configure the URL for the Jenkins server. It should be filled by default, so please ‘Save and continue’

Now Jenkins is ready to use. Continue by pressing ‘Start using Jenkins’

Where to go next

Next we will lear to setup Fastlane with Jenkins in macOS. Please continue to read next Part of this tutorial — CI/CD Environment Setup, Configure Fastlane with Jenkins in macOS.



Mohammad Mahmudul Hasan

A learner, constantly striving to learn new technologies and look the ways to be better in this rapidly changing industry.