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

Malformed xml prevents junit file from being closed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • junit-plugin
    • None
    • Jenkins 1.628
      Junit 1.9

      Our unit test suite occasionally dumps a malformed XML file.

      The file fails to be parsed and causes the build to fail, however on the next job on the agent the junit xml file cannot be deleted:

      13:32:23 [***-unit] $ p4 -d C:\jenkins\***-unit -x- have
      13:32:29 Could not remove file: C:\jenkins\***-unit\results\***\munit.xml caused by
      13:32:29 C:\jenkins\***-unit\***\munit.xml: The process cannot access the file because it is being used by another process.
      13:32:29 
      13:32:29 WARNING: Problem deleting file during quick clean: 

      A similar error is raised when deleting the file manually, and the process using the file is the jenkins.war process.

      I have attached the offending malformed xml file.

      I believe in previous versions this malformed XML would cause the build to error and the file would be closed correctly. I am not sure of the version I was previously using however.

        1. config.xml
          1 kB
        2. munit.xml
          0.2 kB

            Unassigned Unassigned
            evanb Evan Benn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: