Jenkins Tutorial

Jenkins Overview:

Jenkins is an open source automation server written in Java. Jenkins helps to automate the non-human part of software development process, with continuous integration and facilitating technical aspects of continuous delivery

Basically Continuous Integration is the practice of running your tests on a non-developer machine automatically every time someone pushes new code into the source repository.

Built on top of Continuous Integration are Continuous Deployment/Delivery where after a successful test run your instantly and automatically release the latest version of your codebase. Makes deployment a non-issue and helps you speed up your development.



Jenkins Installation on CentOS

STEPS:



  1. Lauch an ec2 instance in AWS
  2. run the below script to install jenkins

    #!/bin/bash

    yum update -y
    sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
    sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
    yum install jenkins -y


  3. After ran the above script, run the below commands
    1. service jenkins status
    2. service jenkins start ( if fails, look for Java -8 version)
    For running jenkins, Require java-8 version to be installed, as pert of pre-requisites.So , lets update the java to java-8 version in the current existing server
    1. Remove the existing java version -7
    2. yum remove java-1.7.0-openjdk-1.7.0.161-2.6.12.0.75.amzn1.x86_64 -y
    3. Install the latest java - 8 version
    4. yum install java-1.8.0-openjdk -y
    To know the AWS EC2 Public IP address from the Linux terminal, Run the below command

    $ curl ipinfo.io/ip
    13.126.45.70















    Comments

    Popular posts from this blog

    Kubernetes Course

    AWS-DevOps Overview

    GitHub Administration