pipeline {
    agent { dockerfile true } 
    stages 
    {
        stage('CopyArtifacts') 
	{
            steps {
                copyArtifacts fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
		archiveArtifacts 'wikiniews_results.tsv'
            }
	}
	stage('Shell Script') 
	{
	    steps {
		sh label:"", script:"bash ./count.sh"
		archiveArtifacts 'lines_number.txt'
	    }
        }
    }
}