How to Install Jenkins in Mac OS
Here's a simple step-by-step guide to install Jenkins on macOS:
Step 1: Install Homebrew (if not already installed)
Homebrew makes installing packages easy.
-
Open Terminal and run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
After installation, verify:
brew --version
Step 2: Install Java (JDK)
Jenkins needs Java.
-
Install OpenJDK (example: JDK 11):
brew install openjdk@11
-
Link Java to your system:
brew link --force --overwrite openjdk@11
-
Verify Java version:
java -version
(You should see Java 11 or higher.)
Step 3: Install Jenkins
- Install Jenkins using Homebrew:
(LTS = Long-Term Support version, stable.)brew install jenkins-lts
Step 4: Start Jenkins
-
To start Jenkins manually:
brew services start jenkins-lts
-
Jenkins will now start automatically in the background.
Step 5: Access Jenkins
-
Open your browser and go to:
http://localhost:8080
-
It will ask for the initial Admin Password.
-
Find the password by running:
cat /Users/$(whoami)/.jenkins/secrets/initialAdminPassword
-
Copy the password and paste it in the browser.
Step 6: Finish Jenkins Setup
- Install Suggested Plugins (recommended for beginners).
- Create your Admin User.
- Start using Jenkins Dashboard.
Comments
Post a Comment