jenkins 如何禁用健全性检查器

agyaoht7  于 2023-10-17  发布在  Jenkins
关注(0)|答案(1)|浏览(142)

Ubuntu 22.04.2 LTS.我正在尝试从Jenkins作业执行bitbake <image>。构建失败,错误为:

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
  Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
  Following is the list of potential problems / advisories:
  Your Python 3 is not a full install. Please install the module distutils.sysconfig (see the Getting Started guide for further information).

我试图安装distutils模块(尝试了here的方法),但遇到了无法修复的依赖性问题,因此作为替代解决方案,我想禁用健全性检查
这是sanity.conf目前的样子:

# Sanity checks for common user misconfigurations
#
# See sanity.bbclass
#
# Expert users can confirm their sanity with "touch conf/sanity.conf"
BB_MIN_VERSION = "1.46.0"

SANITY_ABIFILE = "${TMPDIR}/abi_version"

SANITY_VERSION ?= "1"
LOCALCONF_VERSION  ?= "1"
LAYER_CONF_VERSION ?= "7"
SITE_CONF_VERSION  ?= "1"

INHERIT += "sanity"

那么如何更新sanity.conf来禁用健全检查器呢?

qvtsj1bj

qvtsj1bj1#

正如注解中所详细说明的,不建议禁用健全性检查,除非您准备好面对错误并自行修复它们。
在您的local.conf或环境中任何其他合适的.conf文件中,添加:

INHERIT:remove = "sanity"

相关问题