node { 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/s416072/s416072-mlworkshops.git']]]) sh label: '', script: './skrypt.sh' archiveArtifacts 'output' def customImage = docker.build("my-custom-image") customImage.inside { sh 'echo aaaa' } }