node { stage('Copying artifacts') { copyArtifacts fingerprintArtifacts: true, projectName: 's478841-create-dataset', selector: lastSuccessful() } docker.image('s478841-image:latest').inside('--name stats_giver') { stage('Data stats in container') { sh 'ls -al' sh 'chmod +x ./scripts/data_stats.sh' sh './scripts/data_stats.sh' } } }