From 141ef38f978c954c2bab6d91080e390520121d96 Mon Sep 17 00:00:00 2001 From: skudin13 Date: Fri, 30 Oct 2026 11:39:01 +0100 Subject: [PATCH] Jenkinsfile: build with BuildKit The Dockerfile now has an upstream image check that uses RUN --mount, which needs BuildKit. The Jenkins Docker 20.10 agents ship BuildKit but keep it off by default, so main build #9 failed with 'the --mount option requires BuildKit'. Set DOCKER_BUILDKIT=1 for the build step and keep the Dockerfile identical to upstream. PTEUDO-4980 Co-Authored-By: Claude Opus 5.5 --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9ab059eb..45063670 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,9 @@ pipeline { stages { stage("Build Image") { steps { - sh 'docker build . -t tags-operator:$TAG' + // The Dockerfile uses RUN --mount (upstream image check), which needs BuildKit. + // The Docker 20.10 agents ship it but keep it off by default. + sh 'DOCKER_BUILDKIT=1 docker build . -t tags-operator:$TAG' } } stage("Push Image") {