diff --git a/createDataset/Jenkinsfile b/createDataset/Jenkinsfile index af1cffc..405fc3d 100644 --- a/createDataset/Jenkinsfile +++ b/createDataset/Jenkinsfile @@ -37,10 +37,12 @@ pipeline { } stage('Docker') { steps { - def dockerImage = docker.build("docker-iamge", "./docker") - dockerImage.inside { - sh 'ls -l' - } + script { + def dockerImage = docker.build("docker-iamge", "./docker") + dockerImage.inside { + sh 'ls -l' + } + } } } // stage('Archive file') {