pipeline {
   agent any

   stages {
      stage('checkout: Check out from version control') {
         steps {
            git 'https://git.wmi.amu.edu.pl/s416178/s416178-mlworkshops'
         }
      }
      stage('copyArtifacts') {
         steps {
            copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
         }
      }
      stage('sh: Shell Script') {
         steps {
            sh('chmod +x ./shell_script.sh')
            sh('./shell_script.sh')
         }
      }
      stage('archiveArtifacts') {
         steps {
            archiveArtifacts 'result.log'
         }
      }
   }
}