[cygwin] JunitPublisher fails to convert Spy log paths into paths relative to the workspace

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      We are running a Jenkins master under Linux and a Windows slave under Cygwin.

      The JunitTestPublisher fails at the end of the maven build with the following error:

      java.lang.IllegalArgumentException: Cannot relativize 'D:\home\builder\workspace\aven-single-pipeline_master-JBUUVCDBFMEQBMT26UI5UGSR4QCXX6Y4IUDOLCM3AQQM3XS2TLNQ\target/surefire-reports' relatively to '/home/builder/workspace/aven-single-pipeline_master-JBUUVCDBFMEQBMT26UI5UGSR4QCXX6Y4IUDOLCM3AQQM3XS2TLNQ'
       	at org.jenkinsci.plugins.pipeline.maven.util.XmlUtils.getPathInWorkspace(XmlUtils.java:319)
       	at org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher.executeReporter(JunitTestsPublisher.java:235)
       	at org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher.process(JunitTestsPublisher.java:181)

       

      As you noticed, paths extracted from the maven execution by the Spy plugin are in the Windows format, whereas the workspace path as reported by Jenkins is in standard Unix format.

      The plugin is unable to compute a path relative to the workspace because the two arguments are in different format.

            Assignee:
            Unassigned
            Reporter:
            Bertrand Renuart
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: