pipeline {
    agent { dockerfile true }
    stages {
        stage('Stage 1') {
            steps {
				checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s421818/s421818-mlworkshops.git']]])
				copyArtifacts fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
				sh('chmod 755 ./line_counter.sh')
				sh('chmod 755 ./createWERandSRRFiles.py')
				sh('./metrics.sh')
				archiveArtifacts 'liczba_linii.txt'
            }
        }
    }
}