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

Backward Compatibility issue with 'Github Branch Source' plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None

      After upgrading to Jenkins 2.346.3 as well as all the plugins accordingly last week, pipelines fail constantly because Github Branch Source (v1687.v7618247e672d) cannot pass a check:

      Sep 07, 2022 12:45:17 PM INFO org.jenkinsci.plugins.github_branch_source.ApiRateLimitChecker$RateLimitCheckerAdapter checkRateLimit
      LocalChecker for rate limit was not set for this thread. Configured using system settings with API URL 'https://<private_github_server>/api/v3'.

      Because this Github server is on a private and it may not have had the rate limit enabled ever, our CI/CD is blocked and our team is coding blindly, etc...

      As such, we consider a Backward Compatibility issue with this plugin.

          [JENKINS-69546] Backward Compatibility issue with 'Github Branch Source' plugin

          Cedric H added a comment -

          After updated today the github-branch-source plugin from 1687.v7618247e672d to 1694.vd46793a_c4a_57, the checkRateLimit log message disappeared from the Jenkins System Logs.

          Still, my multi-branch pipeline, which dependents on shared libraries, fails as follow:

          Started by user Admin
          15:14:51 Connecting to https://<private_github_server>/api/v3 using SSO account for CC/CD
          Obtained Jenkinsfile from b386dd57a59183bc4b362b8280d9e802943712b7
          Loading library my-jenkins-shared-library@master
          Examining my-project/jenkins-pipeline-library
          Attempting to resolve master as a branch
          Resolved master as branch master at revision 7249b95bb46380f8f69195d968f346c3a1581ed1
          ERROR: Checkout failed
          java.lang.NullPointerException
          at java.util.TreeMap.putAll(TreeMap.java:313)
          at hudson.slaves.EnvironmentVariablesNodeProperty.buildEnvVars(EnvironmentVariablesNodeProperty.java:86)
          at hudson.model.Computer.buildEnvironment(Computer.java:1202)
          at hudson.model.Job.getEnvironment(Job.java:388)
          at hudson.model.Run.getEnvironment(Run.java:2431)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.getEnvironment(WorkflowRun.java:502)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1296)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
          at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve$1(SCMSourceRetriever.java:201)
          at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrySCMOperation(SCMSourceRetriever.java:148)
          at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:200)
          at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:137)
          at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:260)
          at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:150)
          at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
          at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
          at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
          at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
          at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
          at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
          at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
          at groovy.lang.GroovyShell.parseClass(GroovyShell.java:677)
          at groovy.lang.GroovyShell.parse(GroovyShell.java:689)
          at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
          at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
          at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561)
          at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:513)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
          at hudson.model.ResourceController.execute(ResourceController.java:101)
          at hudson.model.Executor.run(Executor.java:442)
          ERROR: Maximum checkout retry attempts reached, aborting
          org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
          WorkflowScript: Loading libraries failed

          1 error

          at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
          at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
          at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
          at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
          at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
          at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
          at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
          at groovy.lang.GroovyShell.parseClass(GroovyShell.java:677)
          at groovy.lang.GroovyShell.parse(GroovyShell.java:689)
          at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
          at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
          at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561)
          at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:513)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
          at hudson.model.ResourceController.execute(ResourceController.java:101)
          at hudson.model.Executor.run(Executor.java:442)

          GitHub has been notified of this commit’s build result

          Finished: FAILURE

          Cedric H added a comment - After updated today the github-branch-source plugin from 1687.v7618247e672d to 1694.vd46793a_c4a_57 , the checkRateLimit log message disappeared from the Jenkins System Logs. Still, my multi-branch pipeline, which dependents on shared libraries, fails as follow: Started by user Admin 15:14:51 Connecting to https://<private_github_server>/api/v3 using SSO account for CC/CD Obtained Jenkinsfile from b386dd57a59183bc4b362b8280d9e802943712b7 Loading library my-jenkins-shared-library@master Examining my-project/jenkins-pipeline-library Attempting to resolve master as a branch Resolved master as branch master at revision 7249b95bb46380f8f69195d968f346c3a1581ed1 ERROR: Checkout failed java.lang.NullPointerException at java.util.TreeMap.putAll(TreeMap.java:313) at hudson.slaves.EnvironmentVariablesNodeProperty.buildEnvVars(EnvironmentVariablesNodeProperty.java:86) at hudson.model.Computer.buildEnvironment(Computer.java:1202) at hudson.model.Job.getEnvironment(Job.java:388) at hudson.model.Run.getEnvironment(Run.java:2431) at org.jenkinsci.plugins.workflow.job.WorkflowRun.getEnvironment(WorkflowRun.java:502) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1296) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve$1(SCMSourceRetriever.java:201) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrySCMOperation(SCMSourceRetriever.java:148) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:200) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:137) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:260) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:150) at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:677) at groovy.lang.GroovyShell.parse(GroovyShell.java:689) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:513) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) ERROR: Maximum checkout retry attempts reached, aborting org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:677) at groovy.lang.GroovyShell.parse(GroovyShell.java:689) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:513) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) GitHub has been notified of this commit’s build result Finished: FAILURE

          Cedric H added a comment -

          The issue from my last comment is not occurring anymore (at least so far) after having applied the steps described under https://issues.jenkins.io/browse/JENKINS-69548?focusedCommentId=430091&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-430091

          Cedric H added a comment - The issue from my last comment is not occurring anymore (at least so far) after having applied the steps described under https://issues.jenkins.io/browse/JENKINS-69548?focusedCommentId=430091&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-430091

            Unassigned Unassigned
            ceddaerrix Cedric H
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: