0

我们正在尝试在 Jenkins 管道构建结束时生成 HTML 报告。该报告应该显示饼图。但是根据机器的不同,浏览器会抛出这个错误来代替饼图:

Invalid JSON string:
{"width":"100%",
"height":270,
"title":"1 TestSuite",
"is3D":true,
"fontSize":"12",
"colors":["#5cb85c","#f0ad4e","#5bc0de","#d9534f"],
"pieStartAngle":100,
"backgroundColor":"white",
"titleTextStyle":{"fontSize":"13","color":"#5e5e5e"}
}

我们的管道代码(不确定是否相关):

publishHTML (target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'tests/src/testresults/',
reportFiles: 'chrome-test-report.html',
reportName: 'Test Report'
])

出 Jenkins 版本:2.32.1

4

0 回答 0