In this post, we will see how we can effectively install and setup jenkins on MacOS, we will use brew command to perform the jenkins installation which reduces the installation time and also avoids permission issues in Mac.
Hey guys, in this post will learn about how to download and install Jenkins on Mac. Jenkins is a self-contained, open-source automation server that can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. STEP 2: PULL AND RUN THE CLOUDBEES JENKINS CONTAINER. Stay in your Docker terminal window. Pull Jenkins from the public repo by running: docker pull jenkins/jenkins docker run -p 8080:8080 -name=jenkins-master jenkins/jenkins. Note that the “Jenkins initial setup” message in your shell window will generate a password for you. Permalink to the latest: 2.255: SHA-1: f1af923ba4d8fed5aacf, SHA-256: fde80b0f9c98e54ed5ed3d7bbb72e003043e014beb1739e8b81d4e1d5f788169.
so let’s get started
Note – make sure you have Homebrew installed.
Install jenkins
Note – lts – long term support version
Homebrew may updated automatically and then you will get the output as
Update the jenkins-lts.plist file
Now navigate to this path and open /usr/local/opt/jenkins-lts/homebrew.mxcl.jenkins-lts.plist file
find below line
and change to
Start the jenkins server
Download Jenkins War
If you want to keep the jenkins running all the time [jenkins will start automatically if you turn on your system], then run command
brew services start jenkins-lts
else, just run command
You will get below result
> Successfully started `jenkins-lts` (label: homebrew.mxcl.jenkins-lts)
Open jenkins
Now navigate to the browser and type localhost:8080
Unlock jenkins
Browser will indicate you to navigate to a hidden folder
/Users/MacUser/.jenkins/secrets/initialAdminPassword
To make the hidden folder visible in mac, navigate to your user folder and type key press combination Command + Shift + >
under the .jenkins | secerts folder, open the InitialAdminPassword file and copy the password and paste into browser, click Continue
Install recommended plugins
Why Use Jenkins
and you are done
Note – To restart the jenkins server
brew services restart jenkins-lts
The Jenkins project produces two release lines: Stable (LTS) and regular (Weekly).Depending on your organization's needs, one may be preferred over the other.See the links below for more information and recommendations about the release lines.
Stable (LTS)
Long-Term Support (LTS) release baselines are chosen every 12 weeks from the stream of regular releases.Every 4 weeks we release stable releases which include bug and security fix backports.Learn more… Violin note chart.
Changelog|Upgrade Guide|Past Releases
Regular releases (Weekly)
This release line delivers bug fixes and new features rapidly to users and plugin developers who need them.It is generally delivered on a weekly cadence.Learn more…
Changelog|Past Releases
Downloading Jenkins
Jenkins is distributed as WAR files, native packages, installers, and Docker images.Follow these installation steps:
- Before downloading, please take a moment to review theHardware and Software requirementssection of the User Handbook.
- Select one of the packages below and follow the download instructions.
- Once a Jenkins package has been downloaded, proceed to theInstalling Jenkinssection of the User Handbook.
- You may also want to verify the package you downloaded.Learn more about verifying Jenkins downloads.
Download Jenkins2.235.5LTS for:
Download Jenkins2.255for:
NOTE: Packages with thegear icon are maintained by third parties.Such packages may be not as frequently updated as packages supported by the Jenkins project directly.Deploying Jenkins in public cloud
Many public cloud vendors provide their own Jenkins installation guides and packages.The guides provide instructions to deploy, maintain, and upgrade on the specific public cloud.Such guides may be used to quickly deploy Jenkins and, in many cases,to get an instance preconfigured to be used within the public cloud(e.g. bundled plugins, integrations with public cloud services, etc.).
Jenkins quickstarts, tutorials, samples, and resources for Azure
Images forAmazon Web Services,Azure,andGoogle Cloud