Counting lines

This commit is contained in:
Artur Nowakowski 2020-04-03 10:49:56 +02:00
parent e2cce49fb7
commit 858d373203
2 changed files with 14 additions and 2 deletions

13
Jenkinsfile vendored
View File

@ -1,10 +1,19 @@
pipeline {
agent any
stages {
stage('Stage 1') {
stage('Checkout') {
steps {
echo 'Hello world!'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416138/s416138-mlworkshops']]])
}
}
stage('Copy results'){
copyArtifacts filter: 'wikinews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
stage('Count lines'){
sh label: '', script: './count_lines.sh'
}
stage('Archive results'){
archiveArtifacts 'counted_lines.txt'
}
}
}

3
count_lines.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
wc -l wikinews_results.tsv > counted_lines.txt