From 07411d371bef3e39257b35db045cc2d23abacdfe Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Thu, 14 Mar 2024 02:31:27 +0200 Subject: [PATCH] maybe withEnv would work --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f435e2e..1ad141e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,14 @@ node { def app - environment { - DOCKER_BUILDKIT = '1' - } - stage('Clone') { checkout scm } stage('Build') { - app = docker.build('mykola2312/mk-dl-bot') + withEnv(['DOCKER_BUILDKIT=1']) { + app = docker.build('mykola2312/mk-dl-bot') + } } stage('Push') {