更新 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.
我该如何为所有构建修复此问题?更新 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.
我该如何为所有构建修复此问题?如果你的构建使用Jenkinsfile,你可能更喜欢添加
environment {
CI = false // do not treat warnings as errors
}