Counting lines
This commit is contained in:
parent
e2cce49fb7
commit
858d373203
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -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
3
count_lines.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
wc -l wikinews_results.tsv > counted_lines.txt
|
Loading…
Reference in New Issue
Block a user