2023-04-08 16:20:53 +02:00
|
|
|
pipeline {
|
2023-04-19 20:14:35 +02:00
|
|
|
agent {
|
2023-05-16 19:53:40 +02:00
|
|
|
dockerfile true
|
|
|
|
// docker { image 's487185/inzynieria-uczenia-maszynowego:latest' }
|
2023-04-19 20:14:35 +02:00
|
|
|
}
|
2023-04-19 23:09:15 +02:00
|
|
|
|
2023-04-08 16:20:53 +02:00
|
|
|
stages {
|
2023-04-19 23:09:15 +02:00
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Copy artifacts') {
|
2023-04-08 16:20:53 +02:00
|
|
|
steps {
|
2023-04-19 23:09:15 +02:00
|
|
|
copyArtifacts projectName: 'z-s487185-create-dataset', selector: lastSuccessful()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Docker script') {
|
|
|
|
steps {
|
|
|
|
sh 'python3 dataset-stats/main.py > dataset-stats.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Save results') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'dataset-stats.txt'
|
2023-04-17 14:28:34 +02:00
|
|
|
}
|
|
|
|
}
|
2023-04-08 15:23:34 +02:00
|
|
|
}
|
|
|
|
}
|