Skip to content

Commit

Permalink
Update Installation of jenkins in ubuntu 18.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
devopsbyhari authored Mar 30, 2023
1 parent 376546b commit 6dcf317
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Jenkins/Installation of jenkins in ubuntu 18.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@ apt install openjdk-11-jre-headless

Jenkins installation steps :
-----------------------
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -

sudo sh -c 'echo deb https://pkg.jenkins.io/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
curl -fsSL https://pkg.jenkins.io/debian/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 binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null


sudo apt-get update

sudo apt-get install jenkins

sudo systemctl enable jenkins

sudo systemctl start jenkins

# check the status using below command
sudo systemctl status jenkins



0 comments on commit 6dcf317

Please sign in to comment.