From 708aa86b03a11de484fbb36459b2989fe6e4388b Mon Sep 17 00:00:00 2001 From: Artur Nowakowski Date: Fri, 3 Apr 2020 13:30:42 +0200 Subject: [PATCH] Accumulate results --- Jenkinsfile | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 77ed769..5031075 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } + } }