Integrating Jenkins with GitHub Webhooks

Integrating Jenkins with GitHub Webhooks

Jenkins Free Style Project:

Create a freestyle job, and choose any name as per project requirements:

Choose GitHub Project, as we build the code while pushing into Jenkins-project.

Use the below mention URL into the GitHub project mention in the above choice:

My Git Repository View-project URL:

use the GIT option and fill up the repository URL: taking it form code mention on the next picture:

Build setup: In our case we use the execute shell, and execute the docker-compose file:

Before execution configure the webhooks: for this, we go into our git-repository and chose the setting option.

Payload URL is my Jenkins URL:

Webhook configured:

Build the setup using the command: execute docker-compose

JOB COMPLETED SUCCESSFULLY:

The application is running on port 8000

\====================================================

Have a nice day!