maybe withEnv would work

This commit is contained in:
mykola2312 2024-03-14 02:31:27 +02:00
parent 388495a340
commit 3587f91320

8
Jenkinsfile vendored
View file

@ -1,16 +1,14 @@
node { node {
def app def app
environment {
DOCKER_BUILDKIT = '1'
}
stage('Clone') { stage('Clone') {
checkout scm checkout scm
} }
stage('Build') { stage('Build') {
app = docker.build('mykola2312/mk-dl-bot') withEnv(['DOCKER_BUILDKIT=1']) {
app = docker.build('mykola2312/mk-dl-bot')
}
} }
stage('Push') { stage('Push') {