maybe withEnv would work
This commit is contained in:
parent
33c2346307
commit
07411d371b
1 changed files with 3 additions and 5 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
|
@ -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') {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue