2021-05-16 16:05:03 +02:00
|
|
|
pipeline {
|
|
|
|
agent any;
|
2021-05-16 16:07:21 +02:00
|
|
|
stages{
|
2021-05-16 16:05:03 +02:00
|
|
|
stage('docker-training') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
def image = docker.build('dock')
|
|
|
|
image.inside{
|
|
|
|
sh 'training.py'
|
2021-05-16 16:09:24 +02:00
|
|
|
sh 'python3 training.py'
|
2021-05-16 16:05:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-16 16:07:21 +02:00
|
|
|
}
|
|
|
|
}
|