2023-05-24 16:45:29 +02:00
|
|
|
node {
|
|
|
|
stage('Preparation') {
|
2023-05-24 17:09:50 +02:00
|
|
|
steps {
|
2023-05-24 16:45:29 +02:00
|
|
|
checkout scm
|
2023-05-24 17:09:50 +02:00
|
|
|
script {
|
|
|
|
if (currentBuild.previousBuild) {
|
|
|
|
copyArtifacts projectName: currentBuild.projectName, filter: 'metrics.txt', fingerprintArtifacts: true, selector: lastSuccessful(), optional: true, target: './train-eval'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
copyArtifacts projectName: 's470618-training', filter: '*.pt', fingerprintArtifacts: true, selector: lastSuccessful(), target: './train-eval'
|
|
|
|
}
|
|
|
|
}
|
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'
|
|
|
|
}
|
|
|
|
}
|