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' } } }