Details

    • 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

            Activity

            Hide
            bitwiseman Liam Newman added a comment - - edited

            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.

            Show
            bitwiseman Liam Newman added a comment - - edited 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.
            Hide
            alphaomega Valerian Martin added a comment -

            Hi,

            I saw this happening when triggered via webhooks.

            Ill check the workaround

            Show
            alphaomega Valerian Martin added a comment - Hi, I saw this happening when triggered via webhooks. Ill check the workaround
            Hide
            alphaomega Valerian Martin added a comment -

            Did as suggested. On Pull Request webhook trigger via push , the pull request tests still didn't start automatically, however didn't get any errors in the jenkins log at the same time.

            Will investigate but would be great if you could point into the right direction in case you might know the issue

            Show
            alphaomega Valerian Martin added a comment - Did as suggested. On Pull Request webhook trigger via push , the pull request tests still didn't start automatically, however didn't get any errors in the jenkins log at the same time. Will investigate but would be great if you could point into the right direction in case you might know the issue
            Hide
            ataylor Alex Taylor added a comment -

            This should be fixed by https://github.com/github-api/github-api/pull/622 for at least the CHECK_RUN event so it will stop this particular bug. There are many other unchecked events though that need to be added. That is a whole other problem

            Show
            ataylor Alex Taylor added a comment - This should be fixed by https://github.com/github-api/github-api/pull/622 for at least the CHECK_RUN event so it will stop this particular bug. There are many other unchecked events though that need to be added. That is a whole other problem

              People

              • Assignee:
                ataylor Alex Taylor
                Reporter:
                alphaomega Valerian Martin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: