Task 3 - metrics - starting point
This commit is contained in:
parent
46b757b410
commit
6abc67535a
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -21,11 +21,14 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'chmod +x ./service.sh'
|
sh 'chmod +x ./service.sh'
|
||||||
sh './service.sh'
|
sh './service.sh'
|
||||||
|
sh 'chmod +x ./metrics_service.sh'
|
||||||
|
sh './metrics_service.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive artifacts') {
|
stage('Archive artifacts') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts 'lines_count.txt'
|
archiveArtifacts 'lines_count.txt'
|
||||||
|
archiveArtifacts 'wikiniews_results.tsv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
metrics_service.sh
Normal file
10
metrics_service.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Prepare hypothesis file based on column 2
|
||||||
|
cut -f2 'wikiniews_results.tsv' > hypothesis.txt
|
||||||
|
# Prepare reference file based on column 3
|
||||||
|
cut -f3 'wikiniews_results.tsv' > reference.txt
|
||||||
|
|
||||||
|
# awk transfer txt to .trn
|
||||||
|
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < referencje.txt > reference.trn
|
||||||
|
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hipotezy.txt > hypothesis.trn
|
Loading…
Reference in New Issue
Block a user