我可以使用jenkins插件“警告ng”解析由“ ng Build&quot”产生的警告?
我正在使用Jenkinsfile来测试和构建Angular WebApp。我还在使用警告下一代插件显示Lint-警告。但是,对于实际的构建战车,我仍然必须在控制台内观察。
- >我可以使用Jenkins插件“警告NG”来解析“ NG Build”产生的警告?
在以下代码 - 纽约书中,我显示了一个简化的Jenkins-Step,该步骤成功地创建了一个Linter报告,但无法解析ng构建
的输出。
stage("Analysis"){
steps{
nodejs(nodeJSInstallationName: 'nodejs') {
sh 'npm ci'
sh 'eslint src --ext .ts -f checkstyle > report/checkstyle-result.xml'
sh 'ng build --configuration production > report/build.log'
recordIssues tools: [
esLint(pattern: 'report/checkstyle-result.xml') // <-- this works
ngBuild(pattern: 'report/build.log') // <-- this tool doesn't exist!
]
}
}
}
I am using a jenkinsfile to test and build an angular webapp. I am also using the Warnings Next Generation Plugin to show lint-warnings. But for actual build-warnings I still have to look inside the console-log.
--> Can I use the jenkins plugin "warnings ng" to parse warnings produced by "ng build"?
In the following code-snippet I show a simplified jenkins-step, that successfully creates a linter-report, but it can not parse the output of ng build
.
stage("Analysis"){
steps{
nodejs(nodeJSInstallationName: 'nodejs') {
sh 'npm ci'
sh 'eslint src --ext .ts -f checkstyle > report/checkstyle-result.xml'
sh 'ng build --configuration production > report/build.log'
recordIssues tools: [
esLint(pattern: 'report/checkstyle-result.xml') // <-- this works
ngBuild(pattern: 'report/build.log') // <-- this tool doesn't exist!
]
}
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论