ium_434749/train-model.Jenkinsfile
Alagris 20af91e76f
Some checks failed
s434749-training/pipeline/head There was a failure building this commit
no mongo
2021-05-10 12:29:49 +02:00

29 lines
1.2 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
stages {
stage('Build') {
steps {
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434749-create-dataset', selector: lastSuccessful()
sh 'python3 train_model.py'
}
post {
success {
emailext body: 'Training of CNN for english phonetic embeddings has finished successfully', subject: 's434749 training finished', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
archiveArtifacts 'cnn.pth,sacred_file_observer/**'
}
fail{
emailext body: 'Training of CNN for english phonetic embeddings has failed!\n'+results, subject: 's434749 evaluation failed', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
abort{
emailext body: 'Training of CNN for english phonetic embeddings was aborted!\n'+results, subject: 's434749 evaluation aborted', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}
}