jenkins - Jenkins 警告发布者在构建时失败
问题描述
我有一个创建 flake8 报告并使用警告发布者的 checkstyle 阶段。当我运行构建时,出现以下错误。
我也安装了“静态分析收集器插件”。
withEnv(["VIR_ENV=$env.WORKSPACE/venv"]){
stage ('Check_style') {
sh """
#. venv/bin/activate
export PATH=${VIRENV}/bin:${PATH}
echo $PATH
make flake8 | tee test-report/flake8.log || true
"""
step([$class: 'WarningsPublisher',
parserConfigurations: [[
parserName: 'Pep8',
pattern: 'report/flake8.log'
]],
unstableTotalAll: '0',
usePreviousBuildAsReference: true
])
}
}
错误:-
Build failed with Error: java.lang.IllegalArgumentException: Could not instantiate {delegate={$class=WarningsPublisher, parserConfigurations=[{parserName=Pep8, pattern=report/flake8.log}], unstableTotalAll=0, usePreviousBuildAsReference=true}} for CoreStep(delegate:
解决方案
推荐阅读
- database - 仅使用数据库事务可以防止 REST API 中的丢失更新问题吗?
- javascript - 如何为 scss 样式文件添加前缀?
- python - Seaborn:在箱线图顶部叠加散点图
- javascript - 将数据表条件格式设置为特定列中的特定值
- elasticsearch - 具有范围内可用值的 Elasticsearch 嵌套查询
- r - 使用 gsub 和多个条件清理字符串
- r - 将 **RPubs** `html` 文件转换回 `Rmd`
- javascript - 可能影响 Edge 86、Dojo、ArcGIS Javascript 4.xx 的错误
- javascript - 数组 - 检查数组元素之一中是否存在值的最佳方法是什么(React / JS)
- python - 当我点击提交按钮时,如何让 matplotlib 饼图显示在 GUI 中?