diff --git a/Dockerfile b/Dockerfile index 9b6b59c..86001a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index bfdf7e4..e635201 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,5 +18,10 @@ pipeline { archiveArtifacts 'wikiniews_results_with_wer.tsv' } } + stage('Wykresy'){ + steps{ + build 's437843-plots' + } + } } } \ No newline at end of file diff --git a/JenkinsfilePlots b/JenkinsfilePlots new file mode 100644 index 0000000..7128ec7 --- /dev/null +++ b/JenkinsfilePlots @@ -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' + } + + } + + } +} \ No newline at end of file diff --git a/wykresy.sh b/wykresy.sh new file mode 100644 index 0000000..5b0d576 --- /dev/null +++ b/wykresy.sh @@ -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 \ No newline at end of file