jenkinsci / ghprb-plugin

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

Jobs somehow caching expired token leads to "bad credentials" error. #787

Closed ecsumed closed 4 years ago

ecsumed commented 4 years ago

Our Github token expired leading to this "bad credentials" error. After a fresh token regeneration, the jobs are not picking up the new token.

Here's the error we get:

Could not update commit status of the Pull Request on GitHub. org.kohsuke.github.HttpException: {"message": "Bad credentials", "documentation_url": https://developer.github.com/v3"}

The only thing that helps is to clone the job. The cloned job works without any issues. We have 100's of jobs and cloning each single one is not feasible. Is there any workaround for existing jobs to pick up the fresh token?

Jenkins version: 2.222.1 GHPRB: 1.42.0

ecsumed commented 4 years ago

🤦 A restart fixed the issue.