ium_s487182/Jenkinsfile-Docker

27 lines
564 B
Plaintext
Raw Normal View History

2023-04-19 18:53:55 +02:00
pipeline {
agent {
dockerfile true
}
2023-04-19 18:39:17 +02:00
2023-04-19 18:53:55 +02:00
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"
}
}
}
}
2023-04-19 18:03:00 +02:00
}