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