๐๏ธ๐ Installing Jenkins for Continuous Integration and Automation! ๐๐ง
Procedure to install Jenkins
Step1:
Go to https://www.jenkins.io/doc/book/installing/linux/
Search for Long Term Support release

Step2:
Go to the console and find whether Java is installed or not, if not then
sudo apt update
sudo apt install openjdk-17-jre
java -version
Then you will see

Step3:
After that run the following command to install Jenkins
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
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
To check the status type service Jenkins status

Step4:
command for Jenkins
To check the status: service jenkins status
To restart the Jenkins: service jenkins restart
To stop the Jenkins: service jenkins stop
Step5:
After that go to the browser and paste your public Ip with a port number just like http://34.219.153.205:8080
Then you will see this page

Step6:
Then run this command
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
you will get the key copy that key and paste it on the Jenkins and click continue

Step7:
Then you will see a new page

click on Install suggested plugins it will automatically install some plugins
Step8:
Then it will ask to create an admin user

Add the detail and click continue
Step9:
you will get an URL from which you can access it and click continue

Step10:
Then a new page will open click on Start using Jenkins

Then finally you will see the Jenkins page

