Jenkins Triggering Pipeline -3

webhook-with-jenkins

Pre-requisites:

Github Repo
Jenkins setup
Install Git
Install Maven

Add Jenkins URL in git hub as webhook

Goto github --> settings --> webhook --> Add webhook Provide Jenkins url as shown in below image

image

Click on Add Webook

image

Create Jenkins job with Jenkinsfile content and click on GitHub hook trigger for GITScm polling as shown below

image

Click on Build

image

Change code in Github repo

Build will happen automatically as show in below image

image