Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ecsumed opened this issue Jul 10, 2020 · 1 comment
Closed

Comments

@ecsumed
Copy link

ecsumed commented Jul 10, 2020

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
Copy link
Author

ecsumed commented Jul 10, 2020

🤦 A restart fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant