diff --git a/Jenkinsfile b/Jenkinsfile index 9e88007..ae8fe5f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,8 +17,8 @@ pipeline { } environment { - // 启用 BuildKit(使层缓存、BUILDKIT_INLINE_CACHE 等特性真正生效) - DOCKER_BUILDKIT = '1' + // 注意:Jenkins 服务器 Docker 未安装 buildx,暂不启用 BuildKit + // 待安装 buildx 后可取消注释: DOCKER_BUILDKIT = '1' // 镜像仓库配置(Infra 服务器内网地址,Prod 服务器可通过内网拉取) REGISTRY = '172.17.16.7:5000' @@ -211,8 +211,6 @@ pipeline { docker build \ -f docker/Dockerfile.deps \ -t ${env.DEPS_IMAGE} \ - --build-arg BUILDKIT_INLINE_CACHE=1 \ - --build-arg MAVEN_OPTS="${env.MAVEN_OPTS}" \ . docker push ${env.DEPS_IMAGE}