Shell Scripting With Example
Write the Shell Scripting file on CMD Line to install Jenkins.
vim jenkins_installation.sh
#!/bin/sh
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
Change the permission.
chmod 777 jenkins_installation.sh
Run the Shell-Scripting File.
./jenkins_installation.sh