From 6ad6b3c5c399f663546f3ada5cf93fa91441fa1d Mon Sep 17 00:00:00 2001 From: s487179 Date: Thu, 20 Apr 2023 19:41:12 +0200 Subject: [PATCH] dockerscript --- createDataset/Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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') {