diff --git a/Jenkinsfile b/Jenkinsfile index 8170a72..71d7710 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { } } - stage("Script") + stage("RunScript") { steps{ sh label:"", script:"bash ./count.sh" diff --git a/count.sh b/count.sh index af22efc..ec24464 100644 --- a/count.sh +++ b/count.sh @@ -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