Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Component/s: github-api-plugin, github-branch-source-plugin, github-plugin
-
Labels:None
-
Similar Issues:
Description
Getting the next error when scanning an organization:
java.lang.IllegalArgumentException: No enum constant org.kohsuke.github.GHEvent.CHECK_RUN at java.lang.Enum.valueOf(Enum.java:238) at org.kohsuke.github.GHHook.getEvents(GHHook.java:32) at org.jenkinsci.plugins.github.webhook.WebhookManager$7.applyNullSafe(WebhookManager.java:284) at org.jenkinsci.plugins.github.webhook.WebhookManager$7.applyNullSafe(WebhookManager.java:281) 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.Iterables$3.next(Iterables.java:508) at com.google.common.collect.Iterables$3.next(Iterables.java:501) at com.google.common.collect.Iterators$5.hasNext(Iterators.java:544) at com.google.common.collect.Lists.newArrayList(Lists.java:138) at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:286) at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:271) at org.jenkinsci.plugins.github.util.FluentIterableWrapper.toSet(FluentIterableWrapper.java:155) at org.jenkinsci.plugins.github.webhook.WebhookManager$2.applyNullSafe(WebhookManager.java:191) 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)
Also this doesn't allow to build Pull Requests automatically. This is happening on the most recent version of Jenkins - 2.164.3, github plugin version 1.29.4, github-branch-source plugin version 2.5.2
Attachments
Issue Links
- links to
Valerian Martin
This is happening when you scan the organization from the Jenkins UI or are you seeing this when webhook fires and starts a scan?
It looks like the underlying issue is that the (external to Jenkins project) GitHub API package doesn't support that webhook event type. We'll need to file an issue with that project: https://github.com/kohsuke/github-api . Filed: https://github.com/kohsuke/github-api/issues/519
As a workaround, you should be able to edit the webhooks for that repo (or the org as whole) and set you Jenkins webhook to not include the "check run" or "check suite" events.
In the links below, edit any Jenkins webhooks to "Let me select individual events".
https://github.com/organizations/YOUR_ORG/settings/hooks
https://github.com/YOUR_ORG/YOUR_REPO/settings/hooks
Please tell me if that works.