gedin
47504b1f7c
Some checks failed
s470618-evaluation/pipeline/head There was a failure building this commit
25 lines
832 B
Plaintext
25 lines
832 B
Plaintext
node {
|
|
stage('Preparation') {
|
|
step {
|
|
checkout scm
|
|
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'
|
|
}
|
|
}
|
|
stage('Evaluate metrics') {
|
|
sh "pip install matplotlib"
|
|
sh "cd train-eval && ./eval.py"
|
|
sh "./plot_metrics.py"
|
|
}
|
|
|
|
|
|
stage('artifacts') {
|
|
echo 'saving artifacts'
|
|
archiveArtifacts 'metrics.txt', 'prediction.tsv', 'metrics.png'
|
|
}
|
|
}
|