1

jenkinsにjunitからXMLを読み取らせようとしていますが、次のエラーが発生します。

SEVERE: error while serving http://localhost:8080/job/JobTeste/test/trendMap

XMLファイルは次のとおりです。

<?xml version="1.0" encoding="UTF-8"?>
<testrun name="test" project="test" tests="19" started="19" failures="0" errors="0" ignored="0">
  <testsuite name="testEmail" time="22.51">
    <testcase name="testA_importBanc" classname="testEmail" time="12.53"/>
    <testcase name="testValidEmail" classname="testEmail" time="9.98"/>
  </testsuite>
</testrun>

なぜそれが起こっているのですか?

4

1 に答える 1

1

Jenkinsは、Antglob形式を使用してJUnit結果ファイルを検索します。ファイルがワークスペースディレクトリの下のサブディレクトリにある場合は、次のように指定する必要があります。

**/Test.xml

または、ワークスペースディレクトリからの相対的なファイルへのフルパス。

于 2012-11-26T21:50:43.080 に答える