Accumulate results

This commit is contained in:
Artur Nowakowski 2020-04-03 13:30:42 +02:00
parent 3c9057c938
commit 708aa86b03

13
Jenkinsfile vendored
View File

@ -1,9 +1,5 @@
pipeline {
agent { dockerfile true }
environment{
WER_EXISTS = fileExists 'last-results/wer.txt'
SRR_EXISTS = fileExists 'last-results/srr.txt'
}
stages {
//Niepotrzebne jezeli Jenkinsfile jest pobierany z repo.
stage('Checkout') {
@ -26,15 +22,9 @@ pipeline {
sh label: '', script: './count_metrics.sh wikiniews_results.tsv'
}
}
stage('Get previous results'){
steps{
copyArtifacts filter: 'srr.txt, wer.txt', fingerprintArtifacts: true, optional: true, projectName: 's416138-metrics', target: 'last-results'
}
}
}
stage('Accumulate metrics results'){
when { expression { WER_EXISTS == 'true' && SRR_EXISTS == 'true'} }
steps{
copyArtifacts filter: 'srr.txt, wer.txt', fingerprintArtifacts: true, optional: true, projectName: 's416138-metrics', target: 'last-results'
sh label: '', script: './append_to_file.sh last-results/srr.txt srr.txt'
sh label: '', script: './append_to_file.sh last-results/wer.txt wer.txt'
}
@ -47,4 +37,5 @@ pipeline {
archiveArtifacts 'wikiniews_results_with_wer.tsv'
}
}
}
}