change jenkinsfile

This commit is contained in:
dylodylo 2020-04-03 15:30:30 +02:00
parent 6766741c06
commit 1f65493332
2 changed files with 3 additions and 4 deletions

2
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
}
}
stage("Script")
stage("RunScript")
{
steps{
sh label:"", script:"bash ./count.sh"

View File

@ -1,10 +1,9 @@
#!/bin/bash
MYFILE="wikiniews_results.tsv"
COUNT=0
COUNT_DIFF=0
wc -l $MYILE > $COUNT
COUNT=$(wc -l < "$MYFILE")
echo $COUNT
# create trn
cut -f2 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > hypothesis.trn
cut -f3 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.trn