Automation of GitHub , Jenkins & Docker

Automation of GitHub , Jenkins & Docker

STEP 1 :

We created container image that’s has Jenkins installed in that image & that image is created by using dockerfile method of image creation.

No alt text provided for this image

Above image is the image of Jenkins Container.

No alt text provided for this image

Above Image is the image which contains some of the programming language interpreter i.e. Python,PHP,HTML etc.This image we use for testing & deployment environment.

And then we create a job chain of 4 jobs which perform some automation.

STEP 2:

JOB 1: It is the job which launches the jenkins container & that container is linked with github & poll SCM is selected to monitor changes at some particulare time interval.

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

STEP 3:

JOB 2: It is job which launches the testing environment and copies the data from github to the root directory of web server that we had launched in container & paste it to the the testing environment & updates the data when any change is done by the developer in the code and that code gets commited by local git.We use httpd as Web Server.

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

STEP 4:

JOB 3: It is the job where we do testing in our customized testing environment that we had created.And unfortunately some error is coming in my case which is not getting resolved by me.It is working on prompt but not working over jenkins dashboard.

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

STEP 5:

JOB 4 : In this job we send an email to the mentioned recipients when any error comes in the process of testing i.e. the environment already launched or any unstable build.

That E-Mail is send by the help of Jenkins plugin i.e. Email Extension

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

STEP 6:

In this step we can create an job which monitors the whole automation process.

IMAGES OF BUILD PIPELINE

No alt text provided for this image

IMAGES FOR EMAIL SENDING & RECEIVING CONFIRMATION

No alt text provided for this image

IMAGES OF GIT & GITHUB

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


To view or add a comment, sign in

More articles by Ashwani S.

Others also viewed

Explore content categories