ium_s434700/evaluation/Jenkinsfile

52 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2021-05-27 16:38:23 +02:00
pipeline {
agent {
dockerfile true
}
stages {
stage('Copy Archive') {
steps {
script {
step ([$class: 'CopyArtifact',
projectName: 's434700-training',
filter: 'model.pt',
2021-05-27 16:49:46 +02:00
target: 'model'])
2021-05-27 16:46:50 +02:00
step ([$class: 'CopyArtifact',
projectName: 's434700-create-dataset',
filter: 'train_set.csv',
target: 'datasets'])
2021-05-27 16:38:23 +02:00
}
}
}
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434700/ium_s434700.git'
}
}
stage('evaluation') {
steps {
sh 'python ./evaluation/eval.py'
sh 'python ./evaluation/plot.py'
2021-06-02 17:32:20 +02:00
sh 'python ./evaluation/scared-fileobserver.py'
2021-06-02 17:47:18 +02:00
sh 'python ./evaluation/scared-mongoobserver.py'
2021-05-27 16:38:23 +02:00
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'model_results.csv'
archiveArtifacts 'model_results.png'
2021-06-02 17:41:48 +02:00
archiveArtifacts 'sacred_runs/**'
2021-05-27 16:38:23 +02:00
}
}
}
2021-05-27 17:14:08 +02:00
post{
success {
mail body: 'SUCCESS EVALUATION', subject: 's434700', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE EVALUATION', subject: 's434700', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
2021-05-27 16:38:23 +02:00
}