Config path of JDK, Git and Maven.
You can also refer this vedio.
Install github plugin
Go to pluginManager page to install github plugin. Choose Available tab and input 'github' as filter in the top-right corner. Choose
Github Plugin, download and install it.
Hit localhost:8080/restart to restart Jenkins.
Config github Web Hook
Now we need to config github web hook to enable builder trigger.
Jenkins Project config
In your project config: http://localhost:8080/job/YOUR-PROJECT/configure check the box:
You can expose your localhost by running ./ngrok http 8080 on the command line. You should see a line that looks something like this:
Forwarding http://128cd298.ngrok.io -> localhost:8080
Now pushes to your Github repository will automatically trigger builds in Jenkins.