diff --git a/Jenkinsfile b/Jenkinsfile index f6eceb2..a945bd2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,9 +4,16 @@ pipeline { stage('1punkt') { steps { copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() - checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '8cdbf19a-e62d-4807-9112-bc7a8d225074', url: 'https://git.wmi.amu.edu.pl/s364909/s364909-mlworkshops.git']]]) - sh 'sh code.sh wikiniews_results.tsv output.txt' - archiveArtifacts 'output.txt' + checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '8cdbf19a-e62d-4807-9112-bc7a8d225074', url: 'https://git.wmi.amu.edu.pl/s364909/s364909-mlworkshops.git']]]) + sh 'sh code.sh wikiniews_results.tsv output.txt' + archiveArtifacts 'output.txt' + } + } + stage('2punkty') { + steps { + copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() + checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '8cdbf19a-e62d-4807-9112-bc7a8d225074', url: 'https://git.wmi.amu.edu.pl/s364909/s364909-mlworkshops.git']]]) + sh 'sh code1.sh wikiniews_results.tsv reference.trn hipothesis.trn' } } } diff --git a/code1.sh b/code1.sh new file mode 100644 index 0000000..3fed610 --- /dev/null +++ b/code1.sh @@ -0,0 +1 @@ +awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < $S1 > $S2