JENKINS INSTALLATION
Step 1 : Use the command sudo su to swtich to the root user
Step 2 : Update ubuntu by using sudo apt-get update
Step 3 : Install Maven using sudo apt install maven and check its version
Step 4 : Install git using sudo apt install git
Step 5 : JENKINS INSTALLATION
i) add the repository key to the system:
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
ii) append the Debian package repository address to the server’s sources.list
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
iii)sudo apt update
iv) sudo apt install Jenkins
Step 6 : Starting Jenkins
i) start Jenkins by using systemctl
sudo systemctl start jenkins
ii) check jenkins status using the command sudo systemctl status jenkins
Step 7 :
i) In the web browser go to localhost:8080. Copy the password displayed on the website
ii) In the terminal window, use the cat command to display the password:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
iii) Copy the displayed password and paste in the browser window
iv) Click on Continue
v) Select Install suggested plugins
vi) Give login details and Click on save and continue
Step 8 : Create a new project by clicking on the NEW ITEM OPTION
Enter name of the project and select the type of the project
Click on save