Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55324

GitHub Plugin tries to register webhook on groovy repository

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: github-plugin
    • Labels:
      None
    • Environment:
      Jenkins v2.150.1, GitHub Plugin v1.29.3
    • Similar Issues:

      Description

      It seems that Re-register hooks for all jobs tries to create a webhook on apache/groovy repository. Here us a relevant log: 

      GitHubRepositoryName[host=github.com,username=apache,repository=groovy]] (events: [PULL_REQUEST, PUSH])
      Failed to add GitHub webhook for GitHubRepositoryName[host=github.com,username=apache,repository=groovy]
      java.lang.NullPointerException: There is no credentials with admin access to manage hooks on GitHubRepositoryName[host=github.com,username=apache,repository=groovy]
      	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)
      
      

      There is no log directly mentioning apache/groovy repository, like:

      Calling registerHooks() for apache/groovy
      

      Although, groovy repository is mentioned together with our private repository: 

      GitHub webhooks activated for job my-app/feature-14 with [GitHubRepositoryName[host=github.com,username=my-user,repository=my-app], GitHubRepositoryName[host=github.com,username=apache,repository=groovy]] (events: [PULL_REQUEST, PUSH])
      

      The only reference for apache/groovy is a Global Pipeline Library, which is being used in declarative pipeline:

      @Library('groovy')
      import groovy.json.JsonBuilder;
      

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              lanwen Kirill Merkushev
              Reporter:
              anton_yurchenko Anton Yurchenko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: