I am a noob to Jenkins, and I have a Jenkins server that runs an ansible playbook to deploy the app.
I would like to be able to have Jenkins run an ansible playbook which runs application python tests when a GitHub pull request is opened. I would then like the results of the tests to be displayed in the Github repo similar to how Travis does it. Are there any way to achieve this with Jenkins? Thanks
This is achievable with Jenkins. There are 3 main steps to this task:
In the case Jenkins GitHub plugin does not allow trigger on pull request webhooks, you would have to implement your own listening of GitHub's webhooks API
pull_request
event and then launch Jenkins build remotely via URL.