【发布时间】:2021-10-11 23:28:08
【问题描述】:
我正在使用Warnings-NG plugin 成功导入 Pylint 和 YamlLint 生成的所有报告。现在我想导入cfn-lint(cloudformation yaml 文件)报告,但我遇到了问题。
我已经使用-f parseable --output-file report.out 生成了cfn-lint 报告,并使用Warnings-NG 的recordIssues tool: yamlLint(pattern: 'report.out') 将其导入到Jenkins 中,没有出现错误,但不幸的是,在导入的cloudformation 模板中没有检测到错误。
之后,我尝试将格式报告更改为 Junit 并使用可用的 Junit 工具将其导入。
// Generate the report:
cfn-lint . -f junit --output-file report-junit.out
// Import the junit report:
recordIssues tool: junitParser(pattern: 'report-junit.out')
在最后一种情况下,我遇到了 Java 错误。
有没有人尝试将cfn-lint 报告导入到 jenkins 或其他类型的应用程序中?
欢迎任何想法。
问候。
【问题讨论】:
标签: jenkins junit yaml amazon-cloudformation