ium_444507/Jenkinsfile_training_sacred_old
Adam Wojdyla 7a446f1753
Some checks failed
444507-training/pipeline/head There was a failure building this commit
s444507-evaluation/pipeline/head This commit looks good
save model
2022-05-16 01:31:02 +02:00

28 lines
952 B
Plaintext

pipeline {
agent {
docker { image 's444507_create_dataset_image:latest' }
}
parameters {
string(name: 'epoch', defaultValue: '1000', description: 'Number of epochs to train model.')
}
stages {
stage('Get arifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful()
}
}
stage('Train model with sacred') {
steps {
sh "python3 lab07_sacred.py with 'epochs=$epoch'"
}
}
}
post {
success {
archiveArtifacts artifacts: 'prediction_results.csv, CarPrices_pytorch_model.pkl, s444507_sacred_FileObserver/**/*.*', followSymlinks: false
}
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}