s452094-mlworkshops/Jenkinsfile

26 lines
680 B
Plaintext
Raw Normal View History

2020-04-03 11:18:54 +02:00
pipeline {
agent any
stages {
2020-04-03 13:02:23 +02:00
stage('Checkout') {
2020-04-03 11:18:54 +02:00
steps {
2020-04-03 12:44:21 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452094/s452094-mlworkshops']]])
2020-04-03 11:18:54 +02:00
}
}
2020-04-03 13:02:23 +02:00
stage('Copy artifacts') {
2020-04-03 13:07:58 +02:00
steps {
copyArtifacts filter: '*.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
2020-04-03 13:02:23 +02:00
}
stage('Shell') {
2020-04-03 13:07:58 +02:00
steps {
sh label: 'count lines', script: './count.sh'
}
2020-04-03 13:02:23 +02:00
}
2020-04-03 13:12:56 +02:00
stage('Archive artifacts') {
2020-04-03 13:07:58 +02:00
steps {
2020-04-03 13:12:56 +02:00
archiveArtifacts 'result.txt'
2020-04-03 13:07:58 +02:00
}
2020-04-03 13:02:23 +02:00
}
2020-04-03 11:18:54 +02:00
}
}