Setup Jenkins

Learn how to install Jenkins locally.

We'll cover the following

Setup Jenkins MacOS/Linux

The below steps will guide you to install Jenkins locally or on any remote machine.

In this tutorial, we will keep the setup configuration simple as per the course needs. For any detailed configuration or learning, please refer to the Jenkins website.

Steps

  • Install the Homebrew package manager

    /bin/bash -c "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/ 
    install/master/install.sh)"
    
  • Install Jenkins

    brew install jenkins 
    
  • To start the Jenkins service

    brew services start jenkins
    
  • To restart the Jenkins service

    brew services restart jenkins
    
  • To stop the Jenkins service

    brew services stop jenkins
    
  • Once the Jenkins service is started, navigate your browser to http://localhost:8080/ and follow the instructions to complete the installation.

  • The below screen will prompt you for the password to complete the installation along with the password location ( /Users/<username>/.jenkins/secrets/initialAdminPassword)

Get hands-on with 1200+ tech skills courses.