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

IndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: warnings-ng-plugin
    • Labels:
      None
    • Environment:
      Linux - Ubuntu
      Jenkins ver. 2.164.2
      Warnings Next Generation Plugin 5.0.0
    • Similar Issues:

      Description

      Given the following pipeline code:

      recordIssues aggregatingResults: true, enabledForFailure: true, minimumSeverity: 'HIGH', tools: [clangTidy(), clang(), gcc(), myPy(), pep8(), pyDocStyle()]

      I get this exception:

      Could not parse build causes edu.hm.hafner.analysis.ParsingException: Exception occurred during parsing
      IndexOutOfBoundsException: Index: 0, Size: 0
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
      	at java.util.ArrayList.get(ArrayList.java:433)
      	at se.bjurr.violations.lib.parsers.PyDocStyleParser.parseReportOutput(PyDocStyleParser.java:26)
      	at edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:33)
      	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInConsoleLog(ReportScanningTool.java:173)
      	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:122)
      	at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:67)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:573)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:529)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:509)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          Can you narrow down the part of the log that causes the exception?

          Show
          drulli Ulli Hafner added a comment - Can you narrow down the part of the log that causes the exception?
          Hide
          drulli Ulli Hafner added a comment -

          Ping, please provide an example file.

          Show
          drulli Ulli Hafner added a comment - Ping, please provide an example file.
          Hide
          drulli Ulli Hafner added a comment -

          I created an issue in the dependency: https://github.com/tomasbjerre/violations-lib/issues/71

          Show
          drulli Ulli Hafner added a comment - I created an issue in the dependency: https://github.com/tomasbjerre/violations-lib/issues/71
          Hide
          davidhart82 David Hart added a comment -

          This occurs if you specify `-s` as a flag to pydocstyle, i.e. show source. The parser is not expecting source in the output.  

          Show
          davidhart82 David Hart added a comment - This occurs if you specify  `-s ` as a flag to pydocstyle, i.e. show source. The parser is not expecting source in the output.  

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              jsnmcdev Jason MCDev
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: