ium_444507/Jenkinsfile_training
Adam Wojdyla 1c0231406b
Some checks failed
s444507-evaluation/pipeline/head There was a failure building this commit
444507-training/pipeline/head There was a failure building this commit
sacred
2022-05-06 00:52:42 +02:00

28 lines
916 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 IUM_07/deepLearning_sacred.py $epoch"
}
}
}
post {
success {
archiveArtifacts artifacts: 'prediction_results.csv, CarPrices_pytorch_model.pkl', followSymlinks: false
}
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}