From 7f72b0f35b9307597c0f4910dd1a49d4b5a3779b Mon Sep 17 00:00:00 2001 From: "alicja.m.musial" Date: Fri, 3 Apr 2020 18:25:41 +0200 Subject: [PATCH] zad4 zmiana sposobu zapisu plikow FIX2 --- Jenkinsfile | 1 + addResults.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 520b95e..a136b7b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,6 +31,7 @@ pipeline { stage('Archive WER and SRR results') { steps { copyArtifacts filter: 'wer.txt srr.txt', fingerprintArtifacts: true, projectName: 's452097-metrics', selector: lastSuccessful(), target: 'previousResults' + sh('chmod +x ./addResults.sh') sh label: 'Add results to file', script: './addResults.sh' } } diff --git a/addResults.sh b/addResults.sh index d90bd30..35d9789 100644 --- a/addResults.sh +++ b/addResults.sh @@ -3,8 +3,8 @@ mv previousResults/wer.txt werNew.txt mv previousResults/srr.txt srrNew.txt -tail -n199 werNew.txt > werNew2.txt -tail -n199 srrNew.txt > srrNew2.txt +tail -n99 werNew.txt > werNew2.txt +tail -n99 srrNew.txt > srrNew2.txt cat wer.txt >> werNew2.txt cat srr.txt >> srrNew2.txt