ium_470618/JenkinsfileEval

20 lines
669 B
Plaintext
Raw Normal View History

2023-05-24 16:45:29 +02:00
node {
stage('Preparation') {
checkout scm
2023-05-24 17:14:20 +02:00
copyArtifacts projectName: 's470618-metrics/master', filter: 'metrics.txt', fingerprintArtifacts: true, selector: lastSuccessful(), optional: true, target: './train-eval'
2023-05-24 17:09:50 +02:00
copyArtifacts projectName: 's470618-training', filter: '*.pt', fingerprintArtifacts: true, selector: lastSuccessful(), target: './train-eval'
2023-05-24 17:14:20 +02:00
}
2023-05-24 16:45:29 +02:00
stage('Evaluate metrics') {
sh "pip install matplotlib"
sh "cd train-eval && ./eval.py"
sh "./plot_metrics.py"
}
2023-05-24 16:58:48 +02:00
2023-05-24 16:45:29 +02:00
stage('artifacts') {
echo 'saving artifacts'
archiveArtifacts 'metrics.txt', 'prediction.tsv', 'metrics.png'
}
}