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

checks-api null pointer exception hard stopped all ci.jenkins.io jobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • checks-api-plugin
    • None
    • Jenkins 2.263.3, previous
    • 1.4.1

      The plugins on ci.jenkins.io were upgraded Saturday Feb 6, 2021. The upgrade included an update to the latest checks-api plugin. The history of the upgrade is in IRC and in a gist

      The checks-api plugin stopped all pipeline jobs on ci.jenkins.io for a period of at least several hours due to null pointer exceptions immediately terminating the jobs.

      The stack trace is:

      13:41:59  Loading library pipeline-library@master
      13:41:59  Attempting to resolve master from remote references...
      13:41:59  Found match: refs/heads/master revision f982f7b16670a91d086d3dc0dba68a476a4b061c
      13:41:59  No credentials specified
      13:41:59  Fetching changes from the remote Git repository
      13:41:59  Fetching without tags
      13:41:59  Checking out Revision f982f7b16670a91d086d3dc0dba68a476a4b061c (master)
      13:41:59  Commit message: "Merge pull request #183 from jenkins-infra/add-hadolint-requirement"
      13:41:59  ERROR: Checkout failed
      13:41:59  java.lang.NullPointerException
      13:41:59  	at org.jenkinsci.plugins.workflow.support.visualization.table.FlowGraphTable$Row.access$902(FlowGraphTable.java:235)
      13:41:59  	at org.jenkinsci.plugins.workflow.support.visualization.table.FlowGraphTable.buildTreeDepth(FlowGraphTable.java:173)
      13:41:59  	at org.jenkinsci.plugins.workflow.support.visualization.table.FlowGraphTable.build(FlowGraphTable.java:61)
      13:41:59  	at io.jenkins.plugins.checks.status.FlowExecutionAnalyzer.extractOutput(FlowExecutionAnalyzer.java:137)
      13:41:59  	at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher.getOutput(BuildStatusChecksPublisher.java:102)
      13:41:59  	at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher.getOutput(BuildStatusChecksPublisher.java:95)
      13:41:59  	at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher$JobCheckoutListener.lambda$onCheckout$0(BuildStatusChecksPublisher.java:153)
      13:41:59  	at java.base/java.util.Optional.ifPresent(Optional.java:183)
      13:41:59  	at io.jenkins.plugins.checks.status.BuildStatusChecksPublisher$JobCheckoutListener.onCheckout(BuildStatusChecksPublisher.java:152)
      13:41:59  	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:150)
      13:41:59  	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve$1(SCMSourceRetriever.java:157)
      13:41:59  	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrySCMOperation(SCMSourceRetriever.java:107)
      13:41:59  	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:156)
      13:41:59  	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:96)
      13:41:59  	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:157)
      13:41:59  	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:138)
      13:41:59  	at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
      13:41:59  	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
      13:41:59  	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
      13:41:59  	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
      13:41:59  	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
      13:41:59  	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
      13:41:59  	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
      13:41:59  	at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
      13:41:59  	at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
      13:41:59  	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
      13:41:59  	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
      13:41:59  	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:571)
      13:41:59  	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:523)
      13:41:59  	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:337)
      13:41:59  	at hudson.model.ResourceController.execute(ResourceController.java:97)
      13:41:59  	at hudson.model.Executor.run(Executor.java:429)
      13:41:59  ERROR: Maximum checkout retry attempts reached, aborting
      13:42:00  [GitHub Checks] GitHub check (name: Jenkins, status: COMPLETED) has been published.
      13:42:00  org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      13:42:00  WorkflowScript: Loading libraries failed
      13:42:00  
      13:42:00  1 error
      13:42:00  
      13:42:00  	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
      13:42:00  	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
      13:42:00  	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
      13:42:00  	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
      13:42:00  	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
      13:42:00  	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
      13:42:00  	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
      13:42:00  	at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
      13:42:00  	at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
      13:42:00  	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
      13:42:00  	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
      13:42:00  	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:571)
      13:42:00  	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:523)
      13:42:00  	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:337)
      13:42:00  	at hudson.model.ResourceController.execute(ResourceController.java:97)
      13:42:00  	at hudson.model.Executor.run(Executor.java:429)
      13:42:00  Finished: FAILURE
      

            xiongkezhi Kezhi Xiong
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: