How install Jenkins on an Ubuntu Server

 How install Jenkins on an Ubuntu Server 22.04


Step 1: Install Java

sudo apt update

sudo apt install openjdk-11-jdk -y         sudo apt install openjdk-8-jdk -y       

java -version


Step 2: Add Jenkins Repository

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



Step 3: Install Jenkins

sudo apt update

sudo apt install jenkins -y

sudo systemctl status jenkins     


Jenkins service is not running or active, run the following command to start it:  sudo systemctl enable --now jenkins


Step 4: Modify Firewall to Allow Jenkins

sudo ufw allow 8080



Step 5: Set up Jenkins

http://localhost:8080   (Server ip : port number)




Obtain the default Jenkins unlock password by opening the terminal and running the following command:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword



simply install the suggested plugins.




http://<JenkinsServerIP>:<JenkinsPort>/github-webhook/


http://13.235.64.201:8080/github-webhook/



Jenkins server set time zone 

type server terminal :-  date

type server terminal :-  sudo dpkg-reconfigure tzdata       

type server terminal :- date


sudo systemctl restart jenkins


Comments

Popular posts from this blog

How to install and configure OSSEC server and client

How to install nuke in windows 10 and windows 11,Installing Nuke on Windows, Install Nuke on Windows

Autodesk Maya 2024 Install Windows 11