Plots
This commit is contained in:
parent
bb2a2b6f39
commit
60c7d406dc
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -19,5 +19,10 @@ pipeline {
|
|||||||
archiveArtifacts 'wikiniews_results_wer.tsv'
|
archiveArtifacts 'wikiniews_results_wer.tsv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Draw plots'){
|
||||||
|
steps{
|
||||||
|
build 's416178-plots'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
20
Jenkinsfile_plots
Normal file
20
Jenkinsfile_plots
Normal 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
10
draw_plots.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user