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 {
|
||||
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') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue