Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to update GitHub PR using Jenkins GitHub Pull Request Builder

I'm trying out a local version of Jenkins. Everything is at the latest possible version. I've installed the GitHub Pull Request Builder, but I am unable to get it to report the build status back to GitHub and update the PR with SUCCESS, FAILURE or ERROR.

I have performed the following steps:

  • Manage Jenkins > Configure System > Github Pull Request Builder : I've added my Credentials and performed all tests successfully:
    • Test basic connection to GitHub -> works
    • Test Permissions to a Repository -> works
    • Test adding comment to Pull Request -> works
    • Test updating commit status -> works

I then created a new job with the following settings:

Jenkins Screenshot

However, I am unable to get Jenkins to update the GitHub PR when doing a build at all. The build is correctly reported as success or fail in Jenkins, but nothing makes it back to GitHub.

Note that I am building manually, and not via the "Use github hooks for build triggering". I assume that this doesn't make a difference?

like image 992
JonoB Avatar asked Mar 24 '16 16:03

JonoB


1 Answers

This plugin will only get into effect when the trigger is actually used.

And i think this is working as intended, you dont want your manual runs all get pushed to your github, it only should get added when the build is in response to a pull request.

You should be able to test it by issuing a pull request yourself. Also, here is some how-to i found interesting.

like image 130
Dominik Gebhart Avatar answered Nov 15 '22 06:11

Dominik Gebhart