Install Jenkins on UBUNTU

Jenkins is a build automation tool used to automate parts of the testing, build, delivery, and deployment of software.


1. Install Java

  • sudo apt update
  • sudo apt install openjdk-11-jdk
  • 2. Add the Jenkins Repository

  • curl -fsSL | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/nul
  • echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
  • 3. Install Jenkins

  • sudo apt update
  • sudo apt install jenkins
  • sudo systemctl status jenkins
  • 4. Modify Firewall to Allow Jenkins

  • sudo ufw allow 8080
  • sudo ufw status
  • sudo ufw enable
  • 5. Set up Jenkins

    To launch and set up Jenkins, open a web browser, and navigate to the IP address of your server

  • http://ip_address_or_domain:8080 or http://localhost:8080
  • Facebook Comments

    You may also like