30 lines
675 B
Groovy
30 lines
675 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
git branch: 'master',
|
|
url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops.git'
|
|
}
|
|
}
|
|
stage('copyArtifacts') {
|
|
steps {
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
|
|
|
|
}
|
|
}
|
|
stage('Count lines'){
|
|
steps {
|
|
sh('chmod +x ./script.sh')
|
|
sh('./script.sh')
|
|
}
|
|
}
|
|
stage('Save result'){
|
|
steps {
|
|
archiveArtifacts 'lines_number.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|