Yas*_*hne 18 continuous-integration build maven npm jenkins
更新 Jenkins 后,所有构建都开始失败,并出现以下错误。
[ERROR] {some text}: {some text} is outdated. Please run next command `npm update`
[INFO] Treating warnings as errors because process.env.CI = true.
[INFO] Most CI servers set it automatically.
Run Code Online (Sandbox Code Playgroud)
如何为所有版本修复此问题?
Yas*_*hne 41
这是此更改的结果:
它引入了CI始终设置为的标准环境变量,true以便让管道和工具知道它们正在持续集成上下文中执行。
这已成为大多数其他流行 CI 解决方案使用的最佳实践,并且许多工具都会寻找此变量以进行适合 CI 的优化。
您可以通过>>部分将CIenv 变量设置为 false 。
Manage JenkinsConfigure SystemGlobal properties
| 归档时间: |
|
| 查看次数: |
12862 次 |
| 最近记录: |