Univention Bugzilla – Bug 47821
ucs-test JUnit output no longer accepted by XUnit
Last modified: 2023-07-26 15:07:14 CEST
xunit-2.1 no longer accepts "invalid" Junit.xml: <http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-5/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/1/console>: > 10:15:54 INFO: [JUnit] - 1029 test report file(s) were found with the pattern '**/test-reports/**/*.xml' relative to '/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master' for the testing framework 'JUnit'. > 10:15:54 WARNING: The file '/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master/test/test-reports/00_checks/01_univention_system_check.xml' is an invalid file. > 10:15:54 WARNING: At line 2 of file:/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master/test/test-reports/00_checks/01_univention_system_check.xml:cvc-complex-type.3.2.2: Attribut "disabled" darf nicht in Element "testsuite" vorkommen. > 10:15:54 ERROR: The plugin hasn't been performed correctly: The result file '/var/lib/jenkins/workspace/UCS-4.2/UCS-4.2-5/AutotestUpgrade/SambaVersion/s4/Systemrolle/master/test/test-reports/00_checks/01_univention_system_check.xml' for the metric 'JUnit' is not valid. The result file has been skipped. > 10:15:54 Build step 'Publish xUnit test result report' changed build result to FAILURE Upstream refused to be more lenient: <https://issues.jenkins-ci.org/browse/JENKINS-51920> <https://issues.jenkins-ci.org/browse/JENKINS-52392>
We no longer use XUnit but JUnit again: <https://git.knut.univention.de/univention/dist/jenkins/-/commit/705011c09529e740b2f6aecc68b53e3c9eaba907>