Mar 23, 2018

Install Jenkins on Amazon Linux AMI

Installing Jenkins On EC2

We can install Jenkins on Amazon Linux AMI by YUM.

First we need to add the repository to the list of YUM repos:

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

and then get the GPG key:

sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
then we can install Jenkins:

sudo yum -y install jenkins