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

xunit plugin should add a help message that a path must not begin with "./" or ".."

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Do
    • Component/s: xunit-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Similar to JENKINS-13608 I just burned some time figuring out, why I keep getting the following error message even though the file does exist:

      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing JUnit
      [xUnit] [INFO] - [JUnit] - No test report file(s) were found with the pattern './Product/testresults.xml' relative to 'C:\Jenkins\workspace\RnD\FA\Opto\Platform\Platform_Unittest_Job_Vorlage' for the testing framework 'JUnit'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'JUnit'?
      [xUnit] [ERROR] - No test reports found for the metric 'JUnit' with the resolved pattern './Product/testresults.xml'. Configuration error?.
      

      I know understand that "./" and "../" is not considered as relative path to the working space, although I did not change the directory and therefore thought my path is absolutely correct.

      I suggest improving the error message and adding a help text to the configuration box of the path noting, that any path starting with "./" or "../" is not considered as compliant relative path.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nfalco Nikolas Falco
                Reporter:
                rstahn Roland Stahn
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: