change jenkinsfile
This commit is contained in:
parent
6766741c06
commit
1f65493332
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -16,7 +16,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Script")
|
stage("RunScript")
|
||||||
{
|
{
|
||||||
steps{
|
steps{
|
||||||
sh label:"", script:"bash ./count.sh"
|
sh label:"", script:"bash ./count.sh"
|
||||||
|
5
count.sh
5
count.sh
@ -1,10 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
MYFILE="wikiniews_results.tsv"
|
MYFILE="wikiniews_results.tsv"
|
||||||
COUNT=0
|
|
||||||
COUNT_DIFF=0
|
COUNT_DIFF=0
|
||||||
wc -l $MYILE > $COUNT
|
COUNT=$(wc -l < "$MYFILE")
|
||||||
|
echo $COUNT
|
||||||
# create trn
|
# create trn
|
||||||
cut -f2 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > hypothesis.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
|
cut -f3 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.trn
|
||||||
|
Loading…
Reference in New Issue
Block a user