From a29429e57666938e59584095179995009539608b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Miko=C5=82ajski?= Date: Wed, 19 Apr 2023 20:12:36 +0200 Subject: [PATCH] Update 'Jenkinsfile-Docker' --- Jenkinsfile-Docker | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile-Docker b/Jenkinsfile-Docker index f62b657..0d71edd 100644 --- a/Jenkinsfile-Docker +++ b/Jenkinsfile-Docker @@ -1,12 +1,18 @@ pipeline { + agent { - dockerfile true + agent any } stages { + stage('Build Image') { + steps { + sh 'docker build --no-cache -t wujt -Dockerfile' + } + } stage('Test') { steps { sh 'ls -l' - sh 'python3 create_dataset.py' + sh 'docker run wujt python3 create_dataset.py' } } }