2020-04-03 11:18:06 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2020-04-03 11:44:28 +02:00
|
|
|
stage('Checkout') {
|
2020-04-03 11:18:06 +02:00
|
|
|
steps {
|
2020-04-03 11:44:28 +02:00
|
|
|
git 'https://git.wmi.amu.edu.pl/s426266/s426266-mlworkshops'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Count lines') {
|
|
|
|
steps{
|
2020-04-03 11:48:13 +02:00
|
|
|
sh('chmod +x ./shell_script.sh')
|
|
|
|
sh('./count_lines.sh')
|
2020-04-03 11:44:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
|
|
|
steps{
|
|
|
|
archiveArtifacts 'count_lines.txt'
|
2020-04-03 11:18:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|