ium_434749/evaluation.Jenkinsfile

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-04-26 17:36:15 +02:00
pipeline {
agent {
dockerfile true
}
stages {
stage('Build') {
steps {
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434749-training', selector: lastSuccessful()
2021-05-09 18:35:29 +02:00
sh 'python3 train_model.py with "mode=eval"'
2021-04-26 17:44:12 +02:00
script{
def results = readFile "${env.WORKSPACE}/results.txt"
}
2021-04-26 17:36:15 +02:00
}
2021-04-26 17:41:52 +02:00
2021-04-26 17:36:15 +02:00
post {
success {
emailext body: 'Evaluation of CNN for english phonetic embeddings has finished successfully!\n'+results, subject: 's434749 evaluation finished', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-10 12:03:41 +02:00
archiveArtifacts 'results.txt,sacred_file_observer/**'
2021-04-26 17:36:15 +02:00
}
2021-05-10 12:30:59 +02:00
failure{
2021-05-10 12:29:49 +02:00
emailext body: 'Evaluation of CNN for english phonetic embeddings has failed!\n'+results, subject: 's434749 evaluation failed', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
2021-05-10 12:30:59 +02:00
aborted{
2021-05-10 12:29:49 +02:00
emailext body: 'Evaluation of CNN for english phonetic embeddings was aborted!\n'+results, subject: 's434749 evaluation aborted', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
2021-04-26 17:36:15 +02:00
}
}
}
}