zad3 teest13
This commit is contained in:
parent
958fc384bf
commit
ae4f2e9d01
@ -5,6 +5,7 @@ RUN apt install -y git
|
|||||||
RUN apt install -y gcc
|
RUN apt install -y gcc
|
||||||
RUN gcc --version
|
RUN gcc --version
|
||||||
RUN apt install -y build-essential
|
RUN apt install -y build-essential
|
||||||
|
RUN apt-get install num-utils
|
||||||
RUN git clone https://github.com/usnistgov/SCTK.git
|
RUN git clone https://github.com/usnistgov/SCTK.git
|
||||||
WORKDIR SCTK
|
WORKDIR SCTK
|
||||||
RUN make config && make all && make check && make install && make doc
|
RUN make config && make all && make check && make install && make doc
|
||||||
|
4
count2.sh
Normal file
4
count2.sh
Normal 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
|
@ -13,14 +13,13 @@ copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, proje
|
|||||||
}
|
}
|
||||||
stage('Count words') {
|
stage('Count words') {
|
||||||
steps {
|
steps {
|
||||||
sh label: '', script: 'ls'
|
|
||||||
sh label: '', script: './count.sh wikiniews_results.tsv'
|
sh label: '', script: './count.sh wikiniews_results.tsv'
|
||||||
|
sh label: '', script: './count2.sh wikiniews_results.tsv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive atifacts') {
|
stage('Archive atifacts') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts 'file.txt'
|
archiveArtifacts 'clear.txt'
|
||||||
archiveArtifacts 'output.txt'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user