Below are the steps to install Jenkins on your ARM-based M1/M2 Mac using Homebrew package manager.
- Open Terminal application.
- Make sure brew is installed on your Mac.
% brew --version Homebrew 4.1.14
If you get an error "zsh: command not found: brew" then make sure to install brew first.
- Now we are good to install Jenkins.
% brew install jenkins-lts
Logs:
% brew install jenkins-lts ==> Fetching dependencies for jenkins-lts: openjdk@17 ==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/17/manifests/17.0.8.1 ############## 100.0% ==> Fetching jenkins-lts ==> Downloading https://ghcr.io/v2/homebrew/core/jenkins-lts/blobs/sha256:xx ############## 100.0% ==> Installing dependencies for jenkins-lts: openjdk@17 ==> Installing jenkins-lts dependency: openjdk@17 ==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/17/manifests/17.0.8.1 Already downloaded: /Users/dev/Library/Caches/Homebrew/downloads/xx--openjdk@17-17.0.8.1.bottle_manifest.json ==> Pouring openjdk@17--17.0.8.1.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/openjdk@17/17.0.8.1: 635 files, 305MB ==> Installing jenkins-lts ==> Pouring jenkins-lts--2.414.2.arm64_sonoma.bottle.tar.gz ==> Caveats Note: When using launchctl the port will be 8080. To 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: /opt/homebrew/opt/openjdk@17/bin/java -Dmail.smtp.starttls.enable\=true -jar /opt/homebrew/opt/jenkins-lts/libexec/jenkins.war --httpListenAddress\=127.0.0.1 --httpPort\=8080 ==> Summary 🍺 /opt/homebrew/Cellar/jenkins-lts/2.414.2: 8 files, 88.8MB ==> Running `brew cleanup jenkins-lts`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> Caveats ==> jenkins-lts Note: When using launchctl the port will be 8080. To 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: /opt/homebrew/opt/openjdk@17/bin/java -Dmail.smtp.starttls.enable\=true -jar /opt/homebrew/opt/jenkins-lts/libexec/jenkins.war --httpListenAddress\=127.0.0.1 --httpPort\=8080
- Now to start Jenkins we will run the below brew command.
% brew services start jenkins-lts
Logs:
==> Tapping homebrew/services Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-services'... remote: Enumerating objects: 2547, done. remote: Counting objects: 100% (300/300), done. remote: Compressing objects: 100% (154/154), done. remote: Total 2547 (delta 173), reused 201 (delta 142), pack-reused 2247 Receiving objects: 100% (2547/2547), 707.22 KiB | 954.00 KiB/s, done. Resolving deltas: 100% (1173/1173), done. Tapped 1 command (45 files, 881.0KB). ==> Successfully started `jenkins-lts` (label: homebrew.mxcl.jenkins-lts)
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to MacOS,
- How to show line numbers in Nano on Mac
- How to install Jupyter Notebook on macOS Sonoma
- How to Disable Remote Management using Mac Terminal
- Test internet speed using macOS Terminal command
- Docker Desktop needs privileged access macOS
- Google Search Hot Trends Screensaver for Mac OS X
- How to do calculations in Mac Terminal
- How to make TextEdit the default text Editor on Mac
- How to Show Full Website Address on Safari for Mac (Ventura/Sonoma)
- The Zsh Shell - Mac Tutorial
- Opening mac Terminal
- How to change the name of your Mac running on macOS Ventura 13
- How to find the Battery Cycle Count on macOS Ventura
- How to set an emoji as Zsh terminal prompt in macOS
- How to access Trash Folder using Mac Terminal Command
- macOS Ventura XCode Command Line Tools Installation
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13
- How to run .sh file in Mac Terminal
- Terminal Command to get the list of available shells in macOS
- How to see Storage Information on macOS Ventura
- How to Go To /usr/local/bin on Mac Terminal?
- How to do screen recording on Mac
- How to Find File and Directory Size in Mac Terminal
- Open .bash_profile File in TextEdit using Terminal
- Remove Now Playing icon from macOS Big Sur Menu Bar
More Posts:
- fatal: Unable to create '/c/git_repo/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. - Git
- Turning Off Chat in Gmail - Google
- TL;DR List of 34+ New Features added to iOS 17 for iPhones - iOS
- Python Comments Multiple Lines - Python
- How to Clone Bitbucket repository to Local Computer - Git
- How to Mount Google Drive in Colab Notebook - Google
- Calculate Volume of Ellipsoid - C-Program
- Open Current Directory in Finder using Mac Terminal - MacOS