This commit is contained in:
s416178 2020-04-03 14:31:20 +02:00
parent bb2a2b6f39
commit 60c7d406dc
3 changed files with 35 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -19,5 +19,10 @@ pipeline {
archiveArtifacts 'wikiniews_results_wer.tsv'
}
}
stage('Draw plots'){
steps{
build 's416178-plots'
}
}
}
}

20
Jenkinsfile_plots Normal file
View File

@ -0,0 +1,20 @@
pipeline {
agent { dockerfile true }
stages {
stage('Prepare environment') {
steps {
git 'https://git.wmi.amu.edu.pl/s416178/s416178-mlworkshops'
copyArtifacts filter: 'srr.txt, wer.txt', fingerprintArtifacts: true, optional: true, projectName: 's416178-metrics', target: './'
}
}
stage('Draw and save plots') {
steps {
sh('chmod +x ./draw_plots.sh')
sh('./draw_plots.sh wer.txt srr.txt')
archiveArtifacts 'wer.png'
archiveArtifacts 'srr.png'
}
}
}
}

10
draw_plots.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
for FILE in "$@"
do
gnuplot <<- EOF
set term png
set output "${FILE}.png"
plot "${FILE}" using 1
EOF
done