pipeline { agent any parameters{ buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR' ) } stages { stage('Checkout') { steps { sh 'rm -rf ium_z487183' sh 'git clone https://git.wmi.amu.edu.pl/s487183/ium_z487183.git' } } stage('Prepare stats') { agent { dockerfile { filename 'DatasetStats.dockerfile' dir 'ium_z487183' reuseNode true } } steps { copyArtifacts filter: 'X_test.csv,X_val.csv,X_train.csv,Y_test.csv,Y_val.csv,Y_train.csv', fingerprintArtifacts: true, projectName: 'z487183-create-dataset', selector: workspace() sh './prepare-stats.sh' archiveArtifacts 'stats.txt' } } } }