Day27 of #90daysofdevops | Jenkins Declarative Pipeline with Docker

Rahul TRahul T
1 min read

Task 1: Create a docker-integrated Jenkins declarative pipeline.

First, add Jenkins to the docker group so that Jenkins can integrate with docker.

Create a new job of type "Pipeline" and add the URL of the GitHub project that you want to use.

Use the above-given syntax using sh inside the stage block of the Pipeline section.

Now, build the job once and check.

The app is running on EC2 public ip: port

Thanks for reading the blog & do share them with someone in need :)

Please share your views and suggestions, they are always welcome.

See you then in the next blog.

Happy learning :)

0
Subscribe to my newsletter

Read articles from Rahul T directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Rahul T
Rahul T

In the exciting realm of DevOps, I am enthusiastic about embracing the culture, methodologies, and technologies that drive successful software delivery. With a commitment to lifelong learning and a passion for problem-solving, I am ready to embark on this journey as an aspiring DevOps engineer, making a positive impact and helping organizations achieve their technological goals.