maybe withEnv would work

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

6
Jenkinsfile vendored
View file

@ -1,17 +1,15 @@
node {
def app
environment {
DOCKER_BUILDKIT = '1'
}
stage('Clone') {
checkout scm
}
stage('Build') {
withEnv(['DOCKER_BUILDKIT=1']) {
app = docker.build('mykola2312/mk-dl-bot')
}
}
stage('Push') {
docker.withRegistry('https://registry.hub.docker.com', 'a2aa5264-dce1-4054-8828-8db95e3c6c3c') {