maybe withEnv would work

This commit is contained in:
mykola2312 2024-03-14 02:31:27 +02:00
parent 33c2346307
commit 07411d371b

8
Jenkinsfile vendored
View file

@ -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') {