2020-04-03 16:17:28 +02:00
|
|
|
pipeline {
|
2020-04-21 21:22:15 +02:00
|
|
|
agent any
|
2020-04-03 16:17:28 +02:00
|
|
|
stages {
|
2020-04-21 21:05:18 +02:00
|
|
|
stage('checkout: Check out from version control') {
|
2020-04-03 16:17:28 +02:00
|
|
|
steps {
|
2020-04-21 21:05:18 +02:00
|
|
|
git branch: 'master',
|
|
|
|
url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops.git'
|
2020-04-03 16:17:28 +02:00
|
|
|
}
|
|
|
|
}
|
2020-04-21 21:05:18 +02:00
|
|
|
stage('Copy Archive') {
|
|
|
|
steps {
|
2020-04-21 21:36:39 +02:00
|
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
|
|
|
|
|
2020-04-21 21:05:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Count lines'){
|
2020-04-21 19:04:45 +02:00
|
|
|
steps {
|
2020-04-21 20:33:28 +02:00
|
|
|
sh('chmod +x ./script.sh')
|
|
|
|
sh('./script.sh')
|
2020-04-21 19:04:45 +02:00
|
|
|
}
|
|
|
|
}
|
2020-04-21 20:44:36 +02:00
|
|
|
stage('Save result'){
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'lines_number.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-21 21:05:18 +02:00
|
|
|
}
|