33 lines
708 B
Groovy
33 lines
708 B
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
checkout([$class: 'GitSCM',
|
|
branches: [[name: '*/master']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
extensions: [],
|
|
submoduleCfg: [],
|
|
userRemoteConfigs: [[
|
|
url: 'https://git.wmi.amu.edu.pl/s452111/s452111-mlworkshops']]])
|
|
}
|
|
}
|
|
stage('Copy Artifacts') {
|
|
steps {
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
|
}
|
|
}
|
|
stage('Count words') {
|
|
steps {
|
|
sh 'chmod +x ./service.sh'
|
|
sh './service.sh'
|
|
}
|
|
}
|
|
stage('Archive artifacts') {
|
|
steps {
|
|
archiveArtifacts 'lines_count.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|