【发布时间】:2017-10-31 02:25:34
【问题描述】:
我正在尝试从默认的 checkstyle 配置 sun-checks 切换到 google-checks。
在我的 jenkinsfile 中,我正在写:
stage('checkstyle') {
steps {
sh "mvn clean checkstyle:checkstyle -Dcheckstyle.config.location='https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml'"
checkstyle canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'target/checkstyle-result.xml', unHealthy: ''
}
}
这是失败并显示错误消息
未能执行目标 org.apache.maven.plugins:maven-checkstyle-plugin:2.17:checkstyle 项目 pmm 上的 (default-cli):Checkstyle 发生错误 报告生成。:检查样式执行期间失败:期间失败 checkstyle 配置:无法解析配置流 - 必须声明元素类型“html”。:8:17 -> [帮助 1]
如何更改 Jenkins 的 checkstyle 配置?
【问题讨论】:
标签: java maven jenkins jenkins-plugins checkstyle