Automated Trigger Jenkins build or Job on Github Pull Request using GHPRB Plugin | Github Webhook

preview_player
Показать описание

How To run or build a jenkins job when a pull-request is raised on github repo using Github Pull Request Builder Plugin.

Github Pull Request Builder Plugin can be used in jenkins for continuous integration of code of different branch. When a PR is raised, the job can be triggered automatically to run some test cases and then pass the status to github for successful merge.

Gtihub Pull Request Builder Plugin:
This Jenkins plugin builds pull requests from GitHub and will report the results directly to the pull request via the GitHub Commit Status API

When a new pull request is opened in the project and the author of the pull request isn't whitelisted, builder will ask Can one of the admins verify this patch?. One of the admins can comment ok to test to accept this pull request for testing, test this please for one time test run and add to whitelist to add the author to the whitelist.

If an author of a pull request is whitelisted, adding a new pull request or new commit to an existing pull request will start a new build.
Рекомендации по теме
Комментарии
Автор

Can you please share how to add that status check ?

shamlisarode
Автор

Is it possible to trigger a webhook event on comment on a pull request?

chetanram
Автор

Currently GitHub Pull Request Builder has critical security vulnerabilities

mikhailpodolskiy