SAGARFIVE

1. Introduction

2. Git Basics

3.  Git Terminology

4.  Git Branching

5.  Git - Github

6.  Git Add (Git staging)

7.  Git Commit

8.  Github Advanced

9.  Git Remote

8.2 Github Webhook

  • Webhooks allow you to build or set up integrations, such as GitHub Apps or OAuth Apps, which subscribe to certain events on GitHub.com.
  • When one of those events is triggered, we’ll send a HTTP POST payload to the webhook’s configured URL.
  • Webhooks can be used to update an external issue tracker, trigger CI builds, update a backup mirror, or even deploy to your production server. You’re only limited by your imagination.

Example : Github webhook-BuildTrigger-Integration-with-jenkins

(i) We can trigger jenkins buildjob using below methods

(ii) Its a jenkins build dashboard , we have to add the github repo url on Source code mangement and next

(iii) We need to tick the github trigger for GITscm polling

(iv) Copy the jenkins URL and paste in the github repository settings>webooks>add webhook>content as json and save

(v) When commit is done ! jenkins build job triggers