pipeline { agent any parameters{ BuildSelector( defaultSelector: lastSuccessful(), description: '', name: 'which_build' ) } stages { stage('checkout: Check out from version control') { steps { git 'https://git.wmi.amu.edu.pl/s434760/ium_434760.git' } } stage('copy artifacts') { steps { copyArtifacts filter: 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv', fingerprintArtifacts: true, projectName: 's434760-create-dataset', selector: params.which_build } } stage('sh: Shell Script') { steps { sh "chmod 777 ./script_stat.sh" sh './script_stat.sh' } } stage('archive artifacts') { steps { archiveArtifacts 'stat.txt' } } } }