1. Jenkins dashboard > manage jenkins
  2. click on advance button from github section
    1. Open Jenkins dashboard. Click on manage jenkins

    2. Check ‘Specify another hook url  and copy the url

    3. Now open your github repository. Go to settings -> webhooks -> add webhooks.
    4. paste the url in payload url field, select Just the push event, check active and finally save or update this.

    5. Now go to jenkins  project configuration. Check git m set git url and select ” github hook trigger for git scm polling”  in the build triggers section . Save the changes.
    6. It’s done. Now if you push in git then the job/project of Jenkins will automatically build according to github repo.

By toihid

Leave a Reply