Accumulate results
This commit is contained in:
parent
3c9057c938
commit
708aa86b03
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -1,9 +1,5 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent { dockerfile true }
|
agent { dockerfile true }
|
||||||
environment{
|
|
||||||
WER_EXISTS = fileExists 'last-results/wer.txt'
|
|
||||||
SRR_EXISTS = fileExists 'last-results/srr.txt'
|
|
||||||
}
|
|
||||||
stages {
|
stages {
|
||||||
//Niepotrzebne jezeli Jenkinsfile jest pobierany z repo.
|
//Niepotrzebne jezeli Jenkinsfile jest pobierany z repo.
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
@ -26,15 +22,9 @@ pipeline {
|
|||||||
sh label: '', script: './count_metrics.sh wikiniews_results.tsv'
|
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'){
|
stage('Accumulate metrics results'){
|
||||||
when { expression { WER_EXISTS == 'true' && SRR_EXISTS == 'true'} }
|
|
||||||
steps{
|
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/srr.txt srr.txt'
|
||||||
sh label: '', script: './append_to_file.sh last-results/wer.txt wer.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'
|
archiveArtifacts 'wikiniews_results_with_wer.tsv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user