Modify Jenkinsfile

This commit is contained in:
s416178 2020-04-03 11:57:33 +02:00
parent ff3abefa07
commit 30576f79d6

12
Jenkinsfile vendored
View File

@ -2,24 +2,16 @@ pipeline {
agent { dockerfile true }
stages {
stage('checkout: Check out from version control') {
stage('Prepare environment') {
steps {
git 'https://git.wmi.amu.edu.pl/s416178/s416178-mlworkshops'
}
}
stage('copyArtifacts') {
steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
}
}
stage('sh: Shell Script') {
stage('Run script and save results') {
steps {
sh('chmod +x ./shell_script.sh')
sh('./shell_script.sh wikiniews_results.tsv > result.log')
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'result.log'
}
}