[JENKINS-54980] Jobs are stopped being triggered - java.lang.NullPointerException: There is no credentials with admin access to manage hooks on GitHubRepositoryName[host=github.com,username=myorgname,repository=myreponame]
I have several pipeline jobs configured to be triggered on every push on master on GitHub.
They worked just fine until lately (unfortunately I can't point to a specific day when it stopped working), and now the jobs are not triggered at all.
I can see this error in system log and in GitHubHookRegisterProblemMonitor page:
{{Failed to add GitHub webhook for GitHubRepositoryName[host=github.com,username=MYORGNAME,repository=MYREPO]
java.lang.NullPointerException: There is no credentials with admin access to manage hooks on GitHubRepositoryName[host=github.com,username=username=MYORGNAME,repository=MYREPO]
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:231)
at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:179)
at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:175)
at org.jenkinsci.plugins.github.util.misc.NullSafeFunction.apply(NullSafeFunction.java:18)
at com.google.common.collect.Iterators$8.next(Iterators.java:812)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:648)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at com.google.common.collect.Lists.newArrayList(Lists.java:138)
at com.google.common.collect.Lists.newArrayList(Lists.java:119)
at org.jenkinsci.plugins.github.util.FluentIterableWrapper.toList(FluentIterableWrapper.java:147)
at org.jenkinsci.plugins.github.webhook.WebhookManager$1.run(WebhookManager.java:127)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)}}
The weird thing is it says [host=github.com,username=MYORGNAME,repository=MYREPO] while username is my organization name instead of the user that has the key defined.
I did all the checks described here: https://support.cloudbees.com/hc/en-us/articles/224621648-GitHub-Webhook-Troubleshooting
Please advise how it can be fixed.
Originally reported by
liyatikal, imported from: Jobs are stopped being triggered - java.lang.NullPointerException: There is no credentials with admin access to manage hooks on GitHubRepositoryName[host=github.com,username=myorgname,repository=myreponame]
- assignee:
integer
- status: Open
- priority: Blocker
- component(s): github-plugin, github-pullrequest-plugin
- resolution: Unresolved
- votes: 3
- watchers: 2
- imported: 2025-12-08
Raw content of original issue
I have several pipeline jobs configured to be triggered on every push on master on GitHub. They worked just fine until lately (unfortunately I can't point to a specific day when it stopped working), and now the jobs are not triggered at all.
I can see this error in system log and in GitHubHookRegisterProblemMonitor page:
{{Failed to add GitHub webhook for GitHubRepositoryName[host=github.com,username=MYORGNAME,repository=MYREPO] java.lang.NullPointerException: There is no credentials with admin access to manage hooks on GitHubRepositoryName[host=github.com,username=username=MYORGNAME,repository=MYREPO] at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:231) at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:179) at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:175) at org.jenkinsci.plugins.github.util.misc.NullSafeFunction.apply(NullSafeFunction.java:18) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:648) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.Lists.newArrayList(Lists.java:138) at com.google.common.collect.Lists.newArrayList(Lists.java:119) at org.jenkinsci.plugins.github.util.FluentIterableWrapper.toList(FluentIterableWrapper.java:147) at org.jenkinsci.plugins.github.webhook.WebhookManager$1.run(WebhookManager.java:127) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)}}
The weird thing is it says [host=github.com,username=MYORGNAME,repository=MYREPO] while username is my organization name instead of the user that has the key defined.
I did all the checks described here: https://support.cloudbees.com/hc/en-us/articles/224621648-GitHub-Webhook-Troubleshooting Please advise how it can be fixed.
environment
Ubuntu<br/>
Jenkins 2.138.3<br/>
GitHub API Plugin 1.95 <br/>
GitHub Branch Source Plugin 2.4.1 <br/>
GitHub Integration Plugin 0.2.4 <br/>
GitHub plugin 1.29.3 <br/>
GitHub Pull Request Builder 1.42.0
integer:
- Original comment link
Raw content of original comment:
The problem was in repository matcher that were failing when trailing slash existed in job configuration.
The problem was in repository matcher that were failing when trailing slash existed in job configuration.