I am using Jenkins to build and test the code in a github repository. I want to trigger tests automatically when a PR is made on github with particular comments / labels.
I have found the plugin github pull request builder enables these sort of features. However, every tutorial / article I find relies on sending a webhook from github to jenkins on a new PR.
The issue is I do not want to expose my jenkins to github, and rather would want to use a cron-like schedule to poll for new PRs that meet the criteria to trigger a test, and then use the github api to push results to the PR comments.
Does anyone know of any documentation that might use an approach like this? Or have a configuration for a job using this approach? I have tried setting up a Crontab line and trigger phrase on a job in Github Pull request builder, but it does not seem to be successful in triggering a job.