Task2


No alt text provided for this image

What is the Task ?

1. Create container image that’s has Jenkins installed using dockerfile

2. When we launch this image, it should automatically starts Jenkins service in the container.

3. Create a job chain of job1, job2, job3 and job4 using build pipeline plugin in Jenkins

4. Job1 : Pull the Github repo automatically when some developers push repo to Github.

5. Job2 : By looking at the code or program file, Jenkins should automatically start the respective language interpreter install image container to deploy code ( eg. If code is of PHP, then Jenkins should start the container that has PHP already installed ).

6. Job3 : Test your app if it is working or not.

7. Job4 : if app is not working , then send email to developer with error messages.

8. Create One extra job job5 for monitor : If container where app is running. fails due to any reason then this job should automatically start the container again.

No alt text provided for this image

We have to ruun the following docker file to install jenkins over the container.

No alt text provided for this image

Now for passwrod check the code when container was runned we have the password there.

Step 3 : Now we are going to create a job chain of job 1 (Github_pull), job (test_dockercmd) , job 3 (Testing) , job 4 (Email) ,job 5

Step 4 : Now create the job 1 in my case Github pull.

No alt text provided for this image


No alt text provided for this image

Job 2 for the checking which code is pulled we have to perform following steps.Now we have to make this automated.

No alt text provided for this image
  • Lets Test our app working or not.
No alt text provided for this image

Mail the result when task is completed.

No alt text provided for this image

Now let us check the pipeline is working fine and execute all task.

No alt text provided for this image

Thank you.

To view or add a comment, sign in

More articles by Harsh Srivastava

  • Amazon EKS Task

    What is Kubernetes ? Kubernetes is a portable, extensible, open-source platform for managing containerized workloads…

    2 Comments
  • AWS Cloud Infrastructure Automation with Terraform

    In this task we were supposed to make a automation project which will enable us to automate the AWS Cloud…

    6 Comments
  • MACHINE LEARNING + GIT + JENKINS AUTOMATION PROJECT.

    This project is built using Machine Learning + GIT + JENKINS this project consist of hyper parameters what is hyper…

    4 Comments

Insights from the community

Others also viewed

Explore topics