This commit is contained in:
Karolina Krzywda 2020-04-17 21:14:03 +02:00
parent 57f650a2cf
commit 221aa680c0
4 changed files with 37 additions and 0 deletions

View File

@ -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
View File

@ -18,5 +18,10 @@ pipeline {
archiveArtifacts 'wikiniews_results_with_wer.tsv'
}
}
stage('Wykresy'){
steps{
build 's437843-plots'
}
}
}
}

21
JenkinsfilePlots Normal file
View 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
View 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