wykresy
This commit is contained in:
parent
57f650a2cf
commit
221aa680c0
@ -6,6 +6,8 @@ RUN apt install -y gcc
|
||||
RUN gcc --version
|
||||
RUN apt install -y build-essential
|
||||
RUN git clone https://github.com/usnistgov/SCTK.git
|
||||
RUN apt-get update && \
|
||||
apt-get install -y gnuplot5
|
||||
WORKDIR SCTK
|
||||
RUN make config && make all && make check && make install && make doc
|
||||
ENV PATH=$PATH:/SCTK/bin
|
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -18,5 +18,10 @@ pipeline {
|
||||
archiveArtifacts 'wikiniews_results_with_wer.tsv'
|
||||
}
|
||||
}
|
||||
stage('Wykresy'){
|
||||
steps{
|
||||
build 's437843-plots'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
JenkinsfilePlots
Normal file
21
JenkinsfilePlots
Normal file
@ -0,0 +1,21 @@
|
||||
pipeline {
|
||||
agent { dockerfile true }
|
||||
stages {
|
||||
stage('Stage 1') {
|
||||
steps {
|
||||
git 'https://git.wmi.amu.edu.pl/s437843/s437843-mlworkshops-new'
|
||||
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's437843-metrics', selector: lastSuccessful()
|
||||
}
|
||||
}
|
||||
stage('Stage 2'){
|
||||
steps{
|
||||
sh('chmod +x ./wykresy.sh')
|
||||
sh('./wykresy.sh wer srr')
|
||||
archiveArtifacts 'wer.png'
|
||||
archiveArtifacts 'srr.png'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
9
wykresy.sh
Normal file
9
wykresy.sh
Normal file
@ -0,0 +1,9 @@
|
||||
for FILE in "$@"
|
||||
do
|
||||
gnuplot <<- EOF
|
||||
set term png
|
||||
set title "Wykres - ${FILE}"
|
||||
set output "${FILE}.png"
|
||||
plot "${FILE}.txt" with points pointtype 1 notitle
|
||||
EOF
|
||||
done
|
Loading…
Reference in New Issue
Block a user