Installing Jenkins Server & Slave on Linux Platforms

Jenkins AWS AMIs by Kurian for building robust CI/CD pipeline.

Complete Jenkins offerings by Kurian in AWS marketplace, that can be tried out for free.

Install Jenkins Server on Ubuntu

$ wget -q -O - | sudo apt-key add -$ sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'$ sudo apt-get update -y$ sudo apt-get install jenkins -y

Install Jenkins Server on CentOS

$ sudo wget -O /etc/yum.repos.d/jenkins.repo$ sudo rpm --import Edit /etc/yum.repos.d/jenkins.repo and set 'gpgcheck=0'# On CentOS 7
$ sudo yum install jenkins -y
# On CentOS 8
$ sudo dnf install jenkins -y
# On CentOS firewall might be needed to make port 8080 open
# use following steps if needed.
$ sudo service firewalld start
$ sudo firewall-cmd --zone=public --add-port=8080/tcp
$ sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent

Install Jenkins Slave on Linux

  • Create OS group “jenkins”.
  • Create OS user “jenkins” with: group “jenkins”, home directory “/var/jenkins” and shell “/bin/bash”.
  • Create “/var/jenkins/.ssh”
$ sudo mkdir /var/jenkins/.ssh
$ sudo chown jenkins:jenkins /var/jenkins/.ssh
$ sudo chmod 700 /var/jenkins/.ssh
  • Setup password-less sudo-as access for jenkins user
$ sudo echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/jenkins-user

Jenkins Machine Images for AWS (AMI) by Kurian

Jenkins Server AMIs

Jenkins Slave AMIs

Configure Jenkins Slave

  • Launch agent on slave node via SSH
  • Launch agent on slave by connecting it to the server
  • Automatically provisioned build nodes using Amazon EC2 plugin



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
DevOps Company

We provide building blocks and directions to kick start or fine tune your DevOps practice.