Created
March 31, 2024 19:26
-
-
Save sanju2/df1f98a8e33817f1e2654cf3bf50cafd to your computer and use it in GitHub Desktop.
Jenkins-Install-Ubuntu-EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Java Install | |
add-apt-repository ppa:openjdk-r/ppa | |
sudo apt update | |
sudo apt install openjdk-17-jre-headless -y | |
# Jenkins Install | |
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \ | |
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | |
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 -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment