s416138-mlworkshops/Jenkinsfile

27 lines
900 B
Groovy

pipeline {
agent any
stages {
//Niepotrzebne jezeli Jenkinsfile jest pobierany z repo.
stage('Checkout') {
steps{
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416138/s416138-mlworkshops']]])
}
}
stage('Copy results'){
steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
}
stage('Count lines'){
steps{
sh label: '', script: './count_lines.sh'
}
}
stage('Archive results'){
steps{
archiveArtifacts 'counted_lines.txt'
}
}
}
}