jenkinsci / ghprb-plugin

github pull requests builder plugin for Jenkins
https://plugins.jenkins.io/ghprb/
MIT License
501 stars 608 forks source link

Unable to commit status back to github from Jenkins #816

Open johankayati2019 opened 3 years ago

johankayati2019 commented 3 years ago

getting this error in jenkins job. Webhook trigger works find but failing when try to commit status back.

this was working fine a week ago. we changed the github token recently and updated the same in jenkins . but still failing

Unable to query GitHub for status of PullRequestorg.kohsuke.github.HttpException: {"message":"Must authenticate to access this API.","documentation_url":"https://developer.github.com/enterprise/2.21/v3

kuchmiyalex commented 3 years ago

Same issue after regenerating token. When testing from the plugin details page - all tests works, I'm able to change the commit status.

clouvet commented 3 years ago

I ran into a similar issue recently. All testing from the plugin detail page worked successfully, but pull requests would not update the commit status. This comment (https://github.com/jenkinsci/ghprb-plugin/issues/787#issuecomment-656877126) suggested a restart of Jenkins after changing the GitHub token, and that fixed the issue for me.