ium_452662/Jenkinsfile

20 lines
516 B
Groovy

node {
agent {
dockerfile true
}
checkout scm
docker.image('ubuntu:latest').inside {
stage('Copy data') {
copyArtifacts filter: 'Car_Prices_Poland_Kaggle.csv', fingerprintArtifacts: true, projectName: 's452662-create-dataset', selector: lastSuccessful()
}
stage('Run') {
sh 'apt-get install python'
sh 'python sacred.py'
}
stage('Save model into artifact') {
archiveArtifacts artifacts: 'model.h5', followSymlinks: false
}
}
}