Skip to content

Instantly share code, notes, and snippets.

@sanju2
Created March 31, 2024 19:26
Show Gist options
  • Save sanju2/df1f98a8e33817f1e2654cf3bf50cafd to your computer and use it in GitHub Desktop.
Save sanju2/df1f98a8e33817f1e2654cf3bf50cafd to your computer and use it in GitHub Desktop.
Jenkins-Install-Ubuntu-EC2
#!/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