27 lines
713 B
Groovy
27 lines
713 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops']]])
|
|
}
|
|
}
|
|
stage('Copy artifacts'){
|
|
steps {
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
|
}
|
|
}
|
|
stage('Count lines and metrics'){
|
|
steps {
|
|
sh('chmod +x ./script.sh')
|
|
sh('./script.sh')
|
|
}
|
|
}
|
|
stage('Save result'){
|
|
steps {
|
|
archiveArtifacts 'lines_number.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|