ium_434749/train-model.Jenkinsfile

34 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2021-04-25 20:55:45 +02:00
pipeline {
agent {
dockerfile true
}
2021-05-10 12:37:12 +02:00
parameters {
string(name: 'batch_size', defaultValue: '512', description: 'size of batch')
string(name: 'learning_rate', defaultValue: '0.01', description: 'Learning rate')
string(name: 'epochs', defaultValue: '14', description: 'epochs')
}
2021-04-25 20:55:45 +02:00
stages {
stage('Build') {
steps {
2021-05-23 19:46:14 +02:00
// cleanWs()
2021-04-25 20:55:45 +02:00
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434749-create-dataset', selector: lastSuccessful()
2021-05-10 12:37:12 +02:00
sh "python3 train_model.py with 'batch_size=${params.batch_size}' 'learning_rate=${params.learning_rate}' 'epochs=${params.epochs}'"
2021-04-25 20:55:45 +02:00
}
post {
success {
2021-04-26 17:36:15 +02:00
emailext body: 'Training of CNN for english phonetic embeddings has finished successfully', subject: 's434749 training finished', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-10 12:03:41 +02:00
archiveArtifacts 'cnn.pth,sacred_file_observer/**'
2021-04-25 20:55:45 +02:00
}
2021-05-10 12:30:59 +02:00
failure{
2021-05-10 12:29:49 +02:00
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'
}
2021-05-10 12:30:59 +02:00
aborted{
2021-05-10 12:29:49 +02:00
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'
}
2021-04-25 20:55:45 +02:00
}
}
}
}