s416178-mlworkshops/Jenkinsfile

28 lines
729 B
Plaintext
Raw Normal View History

2020-04-03 10:47:06 +02:00
pipeline {
agent any
stages {
2020-04-03 11:31:21 +02:00
stage('checkout: Check out from version control') {
2020-04-03 10:47:06 +02:00
steps {
2020-04-03 11:31:21 +02:00
git 'https://git.wmi.amu.edu.pl/s416178/s416178-mlworkshops'
}
}
stage('copyArtifacts') {
steps {
2020-04-03 11:33:43 +02:00
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
2020-04-03 11:31:21 +02:00
}
}
stage('sh: Shell Script') {
steps {
2020-04-03 11:38:55 +02:00
sh('chmod +x ./shell_script.sh')
2020-04-03 11:43:31 +02:00
sh('./shell_script.sh wikiniews_results.tsv > result.log')
2020-04-03 11:31:21 +02:00
}
}
stage('archiveArtifacts') {
steps {
2020-04-03 11:38:08 +02:00
archiveArtifacts 'result.log'
2020-04-03 10:47:06 +02:00
}
}
}
}