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

NullPointerException in hudson.plugins.analysis.core.BuildResult

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      5.0.0-beta2

      Description

      25.07.2017 11:30:07 [TASKS] Computing warning deltas based on reference build #265
      25.07.2017 11:30:07 [WARNINGS] Parsing warnings in console log with parser Java Compiler (javac)
      25.07.2017 11:30:07 ERROR: Build step failed with exception
      25.07.2017 11:30:07 java.lang.NullPointerException
      25.07.2017 11:30:07 at hudson.model.Run.getRootDir(Run.java:1022)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:536)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:979)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:959)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:1169)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.BuildHistory.getReferenceAnnotations(BuildHistory.java:108)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:282)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:222)
      25.07.2017 11:30:07 at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:52)
      25.07.2017 11:30:07 at hudson.plugins.warnings.WarningsResult.<init>(WarningsResult.java:46)
      25.07.2017 11:30:07 at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:428)
      25.07.2017 11:30:07 at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:361)
      25.07.2017 11:30:07 at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:294)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:69)
      25.07.2017 11:30:07 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:298)
      25.07.2017 11:30:07 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      25.07.2017 11:30:07 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      25.07.2017 11:30:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      25.07.2017 11:30:07 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      25.07.2017 11:30:07 at hudson.model.Build$BuildExecution.post2(Build.java:186)
      25.07.2017 11:30:07 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      25.07.2017 11:30:07 at hudson.model.Run.execute(Run.java:1753)
      25.07.2017 11:30:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      25.07.2017 11:30:07 at hudson.model.ResourceController.execute(ResourceController.java:98)
      25.07.2017 11:30:07 at hudson.model.Executor.run(Executor.java:405)
      25.07.2017 11:30:07 Build step 'Suche nach Compiler Warnungen' marked build as failure

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Daniel Beck if I got it right, you should see a warning in the log, but no exception. The details would depend on the exact nature of this bug, which I have not tried to reproduce.

            Show
            jglick Jesse Glick added a comment - Daniel Beck if I got it right, you should see a warning in the log, but no exception. The details would depend on the exact nature of this bug, which I have not tried to reproduce.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            src/main/java/io/jenkins/plugins/analysis/core/steps/PipelineResultAction.java
            http://jenkins-ci.org/commit/analysis-core-plugin/9c6fcf7d86299fb0f5d6c6bf03de382fc746930e
            Log:
            JENKINS-45846 Make run transient and implement RunAction2.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/io/jenkins/plugins/analysis/core/steps/PipelineResultAction.java http://jenkins-ci.org/commit/analysis-core-plugin/9c6fcf7d86299fb0f5d6c6bf03de382fc746930e Log: JENKINS-45846 Make run transient and implement RunAction2.
            Hide
            it12lsp Christian Häussler added a comment -

            Is there a solution for this?

            Show
            it12lsp Christian Häussler added a comment - Is there a solution for this?
            Hide
            drulli Ulli Hafner added a comment - - edited

            Are you asking for a released solution? The solution from the comment above is not released, it is in a feature branch.

            Show
            drulli Ulli Hafner added a comment - - edited Are you asking for a released solution? The solution from the comment above is not released, it is in a feature branch.
            Hide
            drulli Ulli Hafner added a comment -

            Released in 5.0.0-beta2.

            Show
            drulli Ulli Hafner added a comment - Released in 5.0.0-beta2.

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                it12lsp Christian Häussler
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: