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

NPE during pipeline execution in test-stability-plugin

    XMLWordPrintable

Details

    • Bug
    • Status: In Progress (View Workflow)
    • Major
    • Resolution: Unresolved
    • test-stability-plugin
    • None
    • WIndows Server 2012R2, Java 64 bit 1.7.0_67, Jenkins 2.49 (running directly as service), test-stability-plugin V2.2, every plugin up-to-date.

    Description

      While executing our pipeline job, we get this Exception:

      java.lang.NullPointerException
      	at de.esailors.jenkins.teststability.StabilityTestDataPublisher.buildUpInitialHistory(StabilityTestDataPublisher.java:148)
      	at de.esailors.jenkins.teststability.StabilityTestDataPublisher.contributeTestData(StabilityTestDataPublisher.java:101)
      	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:183)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:78)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:65)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
      	at hudson.security.ACL.impersonate(ACL.java:260)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)

      This happens since since a few days only. Before, it worked fine. Maybe it is related to the fact that I have deleted one build ?

      Assigning the priority major, since I don't know how I could work around this without loosing the Unittest-Report (which is essential).

      Attachments

        Issue Links

          Activity

            nostalic Raphael LANG added a comment -

            Same issue and stack trace with Jenkins LTS ver. 2.32.2 on Windows Server 2012 R2,Java 1.8.0_66-b18 and plugin test-stability 2.2, all other plugins up to date as of 2017-03-17.

            Issue is present on several pipeline jobs, all having one or more deleted builds.

            nostalic Raphael LANG added a comment - Same issue and stack trace with Jenkins LTS ver. 2.32.2 on Windows Server 2012 R2,Java 1.8.0_66-b18 and plugin test-stability 2.2, all other plugins up to date as of 2017-03-17. Issue is present on several pipeline jobs, all having one or more deleted builds.
            nostalic Raphael LANG added a comment - - edited

            seanf , kutzi : applying the same change as --JENKINS-36504-- fixed the issue for me; a pull request is available at https://github.com/jenkinsci/test-stability-plugin/pull/4 for review, but I did not test it outside of my pipeline jobs with the configuration described above.

            nostalic Raphael LANG added a comment - - edited seanf , kutzi : applying the same change as -- JENKINS-36504 -- fixed the issue for me; a pull request is available at  https://github.com/jenkinsci/test-stability-plugin/pull/4  for review, but I did not test it outside of my pipeline jobs with the configuration described above.
            seanf Sean Flanigan added a comment - - edited

            schlegel_m nostalic I'm trying to write integration tests for test-stability-plugin, including this case. Has this problem ever been seen when there wasn't a deleted build? It doesn't seem as if the code changed by nostalic is related to deleted builds.

            seanf Sean Flanigan added a comment - - edited schlegel_m nostalic I'm trying to write integration tests for test-stability-plugin, including this case. Has this problem ever been seen when there wasn't a deleted build? It doesn't seem as if the code changed by nostalic is related to deleted builds.

            Code changed in jenkins
            User: Sean Flanigan
            Path:
            src/main/java/de/esailors/jenkins/teststability/StabilityTestDataPublisher.java
            http://jenkins-ci.org/commit/test-stability-plugin/5997dfd83ad39b972ac9ec69e0d1b9e17216ebcf
            Log:
            Merge pull request #4 from nostalic/nostalic-patch-JENKINS-42610

            JENKINS-42610 - Use TestObject.getRun in buildUpInitialHistory

            Compare: https://github.com/jenkinsci/test-stability-plugin/compare/35afd00665fa...5997dfd83ad3

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sean Flanigan Path: src/main/java/de/esailors/jenkins/teststability/StabilityTestDataPublisher.java http://jenkins-ci.org/commit/test-stability-plugin/5997dfd83ad39b972ac9ec69e0d1b9e17216ebcf Log: Merge pull request #4 from nostalic/nostalic-patch- JENKINS-42610 JENKINS-42610 - Use TestObject.getRun in buildUpInitialHistory Compare: https://github.com/jenkinsci/test-stability-plugin/compare/35afd00665fa...5997dfd83ad3
            seanf Sean Flanigan added a comment -

            Could I get you to try test-stability-2.3-SNAPSHOT.hpi from Jenkins CI? It includes nostalic's fix for this problem.

            https://jenkins.ci.cloudbees.com/job/plugins/job/test-stability-plugin/lastStableBuild/de.esailors.jenkins$test-stability/

            seanf Sean Flanigan added a comment - Could I get you to try test-stability-2.3-SNAPSHOT.hpi from Jenkins CI? It includes nostalic 's fix for this problem. https://jenkins.ci.cloudbees.com/job/plugins/job/test-stability-plugin/lastStableBuild/de.esailors.jenkins$test-stability/

            Tested with the 2.3-SNAPSHOT. It seems to be working.

            schlegel_m Markus Schlegel added a comment - Tested with the 2.3-SNAPSHOT. It seems to be working.
            ronak1009 Ronak SHAH added a comment -

            seanf, I am also facing this issue on Jenkins ver. 2.60.1. I am facing the issue even if I don't have any deleted jobs in my pipeline.

            I am using jdk1.8.0_121 and test stability version 2.2.

            ronak1009 Ronak SHAH added a comment - seanf , I am also facing this issue on Jenkins ver. 2.60.1 . I am facing the issue even if I don't have any deleted jobs in my pipeline. I am using jdk1.8.0_121 and test stability version 2.2.
            seanf Sean Flanigan added a comment - ronak1009 Have you tried the snapshot build?  https://jenkins.ci.cloudbees.com/job/plugins/job/test-stability-plugin/lastStableBuild/de.esailors.jenkins$test-stability/

            People

              seanf Sean Flanigan
              schlegel_m Markus Schlegel
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: