无效参数";工具";Jenkins构建警告Ng插件
我正在尝试将下一代静态分析工具插件警告添加到我的管道文件中 我跟踪了他们GitHub页面上写的内容 但是当我尝试添加无效参数";工具";Jenkins构建警告Ng插件,jenkins,jenkins-pipeline,Jenkins,Jenkins Pipeline,我正在尝试将下一代静态分析工具插件警告添加到我的管道文件中 我跟踪了他们GitHub页面上写的内容 但是当我尝试添加 post { always { junit testResults: '**/target/surefire-reports/TEST-*.xml' recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
post {
always {
junit testResults: '**/target/surefire-reports/TEST-*.xml'
recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
recordIssues enabledForFailure: true, tool: checkStyle()
recordIssues enabledForFailure: true, tool: spotBugs()
recordIssues enabledForFailure: true, tool: cpd(pattern: '**/target/cpd.xml')
recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml')
}
}
然后构建它,构建失败并显示以下错误
无效参数“tool”您是指工具吗
我是Jenkins CI的新手,请帮助解决此问题