ium_s487182/Jenkinsfile-Docker

28 lines
585 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 {
2023-04-19 18:57:03 +02:00
sh 'docker build -f Dockerfile .'
2023-04-19 18:53:55 +02:00
}
}
stage('Run command in Docker container') {
steps {
script {
2023-04-19 18:55:25 +02:00
sh "ls -l"
2023-04-19 18:53:55 +02:00
sh "docker run -v ${env.WORKSPACE}/artifacts:/app/artifacts wujt89 python3 create_dataset.py"
}
}
}
}
2023-04-19 18:03:00 +02:00
}