TASK 1 COMPLETE INTEGRATION OF JENKINS WITH GITHUB

TASK 1 COMPLETE INTEGRATION OF JENKINS WITH GITHUB

Task Description

TASK 1 JOB#1 If Developer push to dev branch then Jenkins will fetch from dev and deploy on the dev-docker environment.

JOB#2 If Developer push to master branch then Jenkins will fetch from master and deploy on master-docker environment. both dev-docker and master-docker environments are on different docker containers.

JOB#3 Manually the QA team will check (test) for the website running in the docker environment. If it is running fine then Jenkins will merge the dev branch to master branch and trigger #job 2

STEP BY STEP EXPLANATION

JOB1

As the job1 tells we have to pull the code from dev branch GitHub and this task is done by Jenkins. it uses remote trigger to pull the code from Github.

No alt text provided for this image

After it triggers the code, then it will launch one container and at the time of launching the container, we mount the file where we put all the web hosting pages.

No alt text provided for this image
No alt text provided for this image

Once the job 1 runs successfully, it launches one container name as testing in the Redhat 8.1.

NEXT STEP

After we deploy the code the in the testing environment, it time to check whether it is running properly or not.

No alt text provided for this image
No alt text provided for this image

As you see in the picture, the command running in the Execute Shell, it will check your code, either it is right or not. This job will trigger once job1 runs successfully.

Understanding the Further step

Before understanding Job2, let us see the first Job3 because it gives a more better understanding about the task.

JOB 3

After the job 1 run and the code is tested by the Quality Assurance Team, then the developer branch code merges with the master branch, and this merge is done by Jenkins.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

This job run after the QA team gives a green signal.

JOB2

Once the merge is done. job2 will trigger and it launches one production environment and in this environment, web pages after the, it become available to the client. This job is the as the job1 but the main difference is the webpages come after it merges with the branch.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

So the whole setup is done and all your job runs successfully.

To put the code/push the code on the GitHub we use git. In this task also I use git and also use git property to hooks so that once you commit, it auto-trigger pushes to the respective branch.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

In this task, have integrated git, gitbash, , Jenkins, REDHAT8.1, docker.


Thanks for giving your valuable time ..!

GOOD DAY!!?






要查看或添加评论,请登录

Ankit Kumar的更多文章

  • How Kubernetes Is Changing The Business ????

    How Kubernetes Is Changing The Business ????

    What is Kubernetes?? ???? Kubernetes is an open-source platform for managing containers. The product is created by…

    1 条评论
  • Create CloudFront Architecture with AWS CLI

    Create CloudFront Architecture with AWS CLI

    What is AWS ? AWS is a Public-Cloud platform providing world-wide service and offer over 170 fully-featured services…

    1 条评论
  • AWS Customer Success Story

    AWS Customer Success Story

    What is Cloud Computing? The company that provides their resources over the internet and charges according to the…

  • Big Data

    Big Data

    Today is the world of data and most of the big companies like Facebook, Google, Microsoft, Netflix, Amazon, etc are…

  • Flutter Music Player

    Flutter Music Player

    This article refers to the creation of a Music App with the use of one great Platform know as Flutter. There are many…

  • Integration of Ansible with Docker

    Integration of Ansible with Docker

    This is the first task of Ansible under Mr. Vimal Daga Sir.

    1 条评论
  • FLUTTER ENVIRONMENT SETUP

    FLUTTER ENVIRONMENT SETUP

    What is Flutter? Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web,…

  • AWS + KUBERNATES = AMAZON E

    AWS + KUBERNATES = AMAZON E

    Amazon Elastic Kubernetes Service (Amazon EKS) is a fully managed Kubernetes service. Amazon EKS automatically detects…

  • End to End INTEGRATION Of Docker, Jenkins, Github, Git, Redhat

    End to End INTEGRATION Of Docker, Jenkins, Github, Git, Redhat

    DevOps task2 Let us first understand what we are going to do in this task. Task description 1.

    2 条评论
  • FACE RECOGNITION USING TRANSFER LEARNING

    FACE RECOGNITION USING TRANSFER LEARNING

    Task4 Create a project using transfer learning solving various problems like Face Recognition, Image Classification…

社区洞察

其他会员也浏览了