node { stage('copyArtifact') { copyArtifacts fingerprintArtifacts: true, projectName: 's487197-create-dataset', selector: lastSuccessful() } stage('Shell Script') { sh 'chmod u+x ./stats.sh' sh 'ls' sh './stats.sh' } stage('archiveArtifacts') { archiveArtifacts artifacts: 'stats.txt' } }