jenkins - 我是否能够绕过 Jenkins tsl 错误并继续构建?
问题描述
我的问题与 Jenkins 和 linting 错误有关。
当我npm run build
在我的机器上本地运行时,我成功地构建了我的代码库,没有任何错误。
但是,当我npm run build
在 Jenkins 上运行时,由于 linting 错误(通常与区分大小写的问题和 any 类型的变量有关)而导致作业失败。
这是一个例子:
ERROR in {jenkins-path-to-tsx-file}
[tsl] ERROR in {jenkins-path-to-tsx-file}(3,35)
TS2307: Cannot find module './ResetPasswordForm'.
和
ERROR in {jenkins-path-to-tsx-file}
[tsl] ERROR in {jenkins-path-to-tsx-file}(38,29)
TS7006: Parameter 'res' implicitly has an 'any' type.
我了解如何在我的应用程序代码中修复这些错误以消除这些错误。
我的问题是,我是否能够阻止由于这些错误而导致的构建失败,并将它们显示为警告,或者尽管出现上述错误,仍继续构建 Jenkins 作业?
解决方案
推荐阅读
- javascript - 将 InDesign 表格导出到 Excel
- javascript - 阻止来源为“myMainPage.com”的框架访问跨域框架
- python - 更改 pyinstaller 可执行文件的 Stanza 模型目录
- javascript - 在 Leaflet 网页上发出 WMS 请求时定义 TileSize
- bash - 使用 bash 脚本中的循环解压缩目录中的所有文件
- c++ - Clang 格式错误的枚举大括号并忽略设置
- angular - Angular 2 - scrollPositionRestoration:“启用”不适用于每个组件
- c++ - 为什么删除和清除所有对象后内存没有返回系统?
- url - 通过提供用户名/密码与 Prometheus 进行 URL 检查
- c++ - 在变体向量上使用过滤器