Step 1) Install Java 17 and above
- java -version
- sudo apt update
- sudo apt install fontconfig openjdk-17-jre -y
- java -version
Step 2) Install Jenkins
Install Latest Version Fron Official: Click Here
- sudo wget -O /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
- echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
- sudo apt-get update
- sudo apt-get install jenkins -y
Step 3) Start Jenkins
- sudo systemctl enable jenkins
- sudo systemctl start jenkins
- sudo systemctl status jenkins
Step 4) Allow Jenkins Port 8080 in the Firewall
Step 5) Browse to http://localhost:8080
Step 6) Jenkins Admin User Password
- sudo cat /var/lib/jenkins/secrets/initialAdminPassword
No comments:
Post a Comment
testing