ium_s487182/Jenkinsfile-Docker

27 lines
564 B
Plaintext

pipeline {
agent {
dockerfile true
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build Docker image') {
steps {
sh 'docker build -t wujt89 -f Dockerfile .'
}
}
stage('Run command in Docker container') {
steps {
script {
sh "docker run -v ${env.WORKSPACE}/artifacts:/app/artifacts wujt89 python3 create_dataset.py"
}
}
}
}
}