How to Install Jenkins on Ubuntu 22.0.4 Instance in AWS | Setup Jenkins using 17 on Linux Instance
https://www.coachdevops.com/2024/01/install-jenkins-on-ubuntu-2204-setup.html
Pre-requisites:
port 8080 opened in firewall rule to access Jenkins
Connect to EC2 instance using git bash or iTerm
Steps to install Jenkins:
Perform update first
sudo apt update
Install Java 17
sudo apt install openjdk-17-jdk -y
Once install java, enter the below command
Verify Java Version
java -version
Maven Installation
Maven is a popular build tool used for building Java applications. Please click here to learn more about Maven. You can install Maven by executing below command:
sudo apt install maven -y
Jenkins Setup
Update Ubuntu package
sudo apt update
download the keys from Jenkins website
Install Jenkins
sudo apt install jenkins -y
ubuntu