37 lines
1.1 KiB
Groovy
37 lines
1.1 KiB
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
git 'https://git.wmi.amu.edu.pl/s452097/s452097-mlworkshops'
|
|
}
|
|
}
|
|
|
|
stage('Copy artifacts') {
|
|
steps {
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
|
|
}
|
|
}
|
|
stage('Count words') {
|
|
steps {
|
|
sh('chmod +x ./count.sh')
|
|
sh label: 'count', script: './count.sh'
|
|
}
|
|
}
|
|
stage('Run metrics counter'){
|
|
steps{
|
|
sh('chmod +x ./metrics.sh')
|
|
sh label: 'count', script: './metrics.sh'
|
|
}
|
|
}
|
|
stage('Archive artifacts') {
|
|
steps {
|
|
archiveArtifacts 'wynik.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|