jenkinsfile for eval copy
s470618-evaluation/pipeline/head There was a failure building this commit Details

This commit is contained in:
gedin 2023-05-24 17:09:50 +02:00
parent 8555888ad1
commit ab8d3e21d9
1 changed files with 9 additions and 3 deletions

View File

@ -1,9 +1,15 @@
node {
stage('Preparation') {
steps {
checkout scm
copyArtifacts projectName: 's470618-metrics', filter: 'metrics.txt', fingerprintArtifacts: true, selector: lastSuccessful(), optional: true, target: './train-eval'
copyArtifacts projectName: 's470618-training', filter: '*.pt', fingerprintArtifacts: true, selector: lastSuccessful(), target: '.'
}
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"