node { sh 'echo hello world' copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452088/s452088-mlworkshops.git']]]) sh label: '', script: 'chmod +x metrics_local.sh' sh label: '', script: './metrics_local.sh' archive 'wyniki.out' def customImage = docker.build("my-custom-image") customImage.inside { sh 'ls -l' sh 'chmod +x metrics_docker.sh' sh './metrics_docker.sh' sh 'ls -l' } archive '*' sh label: '', script: 'ls -l' }