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

Plugin is unable to handle NoData in TimeRangeInfo in the SLA.xml

      I got this error message from the console when running a testcase:
      Recording test results
      Report archiving mode is set to: PUBLISH_HTML_REPORT
      Zipping report folder: d:\Jenkins\workspace\TF_PHKO_Enter_prestandatest\ea2861
      Parsing test run dataset for perfomrance report
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      at
      com.hp.application.automation.tools.results.RunResultRecorder.addTimeRanges(RunResultRecorder.java:1175)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.processSlaRule(RunResultRecorder.java:1161)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.processSLA(RunResultRecorder.java:1081)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.parseScenarioResults(RunResultRecorder.java:997)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.buildJobDataset(RunResultRecorder.java:980)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.recordRunResults(RunResultRecorder.java:215)
      at
      com.hp.application.automation.tools.results.RunResultRecorder.perform(RunResultRecorder.java:1237)
      at
      hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at
      hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at
      hudson.model.Build$BuildExecution.post2(Build.java:186)
      at
      hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at
      hudson.model.Run.execute(Run.java:1753)
      at
      hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at
      hudson.model.ResourceController.execute(ResourceController.java:98)
      at
      hudson.model.Executor.run(Executor.java:405)
      Build step 'Publish HP tests result' marked build as failure

      I will attach a copy of the SLA.xml
      There should be some check to see if the element is containing information to avoid this null pointer exception to handle this maybe.

          [JENKINS-44340] Plugin is unable to handle NoData in TimeRangeInfo in the SLA.xml

          Yafim Kazak added a comment -

          Hi,

          we've added a workaround fix in 5.1.0.2-beta and downloadable from Jenkins experimental center

          https://jenkins.io/blog/2013/09/23/experimental-plugins-update-center/

          or directly from here:

          https://updates.jenkins-ci.org/experimental/latest/hp-application-automation-tools-plugin.hpi

           

          Soon we also support it from here:

          https://hpsa.github.io/JenkinsPluginUpdateCenter/

          Yafim Kazak added a comment - Hi, we've added a workaround fix in 5.1.0.2-beta and downloadable from Jenkins experimental center https://jenkins.io/blog/2013/09/23/experimental-plugins-update-center/ or directly from here: https://updates.jenkins-ci.org/experimental/latest/hp-application-automation-tools-plugin.hpi   Soon we also support it from here: https://hpsa.github.io/JenkinsPluginUpdateCenter/

          Yafim Kazak added a comment -

          Will be formally released in 5.2 in August 2017

          Yafim Kazak added a comment - Will be formally released in 5.2 in August 2017

          Per Högberg added a comment -

          Ok, thanks for the infromation will see if I can try the beta otherwise I will be looking forward to the august release.

          Per Högberg added a comment - Ok, thanks for the infromation will see if I can try the beta otherwise I will be looking forward to the august release.

            yafim_kazak Yafim Kazak
            pellos Per Högberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: