Easy Jenkins Deployment on AWS

Easy steps to install / configure Jenkins on AWS Amazon Linux:

Install latest updates, set the hostname, and reboot.

yum -y update
hostnamectl set-hostname jenkins
shutdown -r now

Configure the Jenkins yum repository, install Jenkins, java, git, set Jenkins to start and persist on reboot:

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
yum -y install java-1.8.0-openjdk
yum -y install jenkins
chkconfig jenkins on
yum -y install git

Install and configure nginx to proxy request for Jenkins — reboot and validate:

yum -y install nginx
sudo amazon-linux-extras install nginx1.12
chkconfig nginx on
shutdown -r now

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *