zad3 teest13

This commit is contained in:
massta 2020-04-03 16:36:32 +02:00
parent 958fc384bf
commit ae4f2e9d01
3 changed files with 7 additions and 3 deletions

View File

@ -5,6 +5,7 @@ RUN apt install -y git
RUN apt install -y gcc
RUN gcc --version
RUN apt install -y build-essential
RUN apt-get install num-utils
RUN git clone https://github.com/usnistgov/SCTK.git
WORKDIR SCTK
RUN make config && make all && make check && make install && make doc

4
count2.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt
avg=$(num-average clear.txt)
echo "Medium: $avg" >> clear.txt

View File

@ -13,14 +13,13 @@ copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, proje
}
stage('Count words') {
steps {
sh label: '', script: 'ls'
sh label: '', script: './count.sh wikiniews_results.tsv'
sh label: '', script: './count2.sh wikiniews_results.tsv'
}
}
stage('Archive atifacts') {
steps {
archiveArtifacts 'file.txt'
archiveArtifacts 'output.txt'
archiveArtifacts 'clear.txt'
}
}
}