⚙️
DevOps Mastery on AWS
  • 🤓Continuous Integration & Continuous Deployment on AWS Cloud
  • 🤖Jenkins
    • 🛠️Build Jenkins First Job
    • 🦸Launch 2nd EC2 instance
  • 🐳Docker
    • 📁DOCKERFILE
  • 🛺Ansible
    • 📖Ansible Playbook
  • 🏃‍♂️Continuos Integration with GitHub and Jenkins
  • 👷Project Structure & summary.
  • Basics
Powered by GitBook
On this page
  • Install Git
  • Now that we have everything installed and ready Let's create our Jenkins First Job.

Jenkins

Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

PreviousContinuous Integration & Continuous Deployment on AWS CloudNextBuild Jenkins First Job

Last updated 3 years ago

In last Section we did a lot of stuff:

  1. Launched EC2 instances.

  2. Installed JAVA and edited .bash_profile with vim editor.

  3. Installed MAVEN and edited .bash_profile with vim editor.

In this part of the project, we will Install Jenkins and Git. First of all, make sure you are in the home of the root user. (you can do it by running "sudo su -" command.

Now paste this command one by one to get rpm (RPM stands for Redhat Package Manager) same as yum and wget but Jenkins is available on rpm so follow the steps

wget -O /etc/yum.repos.d/jenkins.repo \https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
amazon-linux-extras install epel -y //for ec2 only
yum update -y 
yum install jenkins java-1.8.0-openjdk-devel 
service jenkins start
chkconfig jenkins on

After completing these steps you have Jenkins running on your server to check copy your ec2 public IP address and access it on port 8080 (ip:8080)

Now as you can see the password is the path given a copy the path and in your terminal run cat ($path) and you will get the password. Enter the password and you will see the Jenkins Setup wizard

  1. Go with Install Suggested plugins

  2. Let the installation be complete. In the next window fill in the details and create a user.

  3. Instance Configuration >> Save and Continue. Your Jenkins is ready!

Why are we installing Git?

To fetch code from Github to Jenkins which will create build file.

Run the commands:

sudo yum install git-all
git --version // to chk git version

Now that we have everything installed and ready Let's create our Jenkins First Job.

Install

🤖
Git