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

Null pointer exception while in GitHubPRBuildStatusPublisher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins version 2.235.1
      All Jenkins plugins are updated to recent versions

      OS: Ubuntu 16.04 LST with all recent updates.
    • Similar Issues:

      Description

      We have: Github enterprise instance with configure webhook that triggers builds on Jenkins.

      Jenkins job is Matrix job with 4 combinations of parameters.
      It has a post-build action:

      Flexible publish
      Run: always
      Actions:
      set PR status on Github

      set github commit status:

      I've got failed builds and NPE in logs of jobs, launched by commits without PR

      ERROR: [flexible-publish] GitHub PR: set PR status (org.jenkinsci.plugins.github.pullrequest.publishers.impl.GitHubPRBuildStatusPublisher@2379c5c0) aborted due to exception
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.github.pullrequest.publishers.impl.GitHubPRBuildStatusPublisher.perform(GitHubPRBuildStatusPublisher.java:95)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      	at org.jenkins_ci.plugins.flexible_publish.builder.FailAtEndBuilder.perform(FailAtEndBuilder.java:104)
      	at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:112)
      	at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:156)
      	at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:107)
      	at org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy.perform(FailAtEndExecutionStrategy.java:85)
      	at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206)
      	at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      	at hudson.model.Build$BuildExecution.post2(Build.java:186)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      	at hudson.model.Run.execute(Run.java:1905)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:153)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:428)
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            lanwen Kirill Merkushev
            Reporter:
            wl2776 Vladimir Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: