pipeline { agent {docker { image 'adnovac/ium_s434760:1.0' }} parameters{ buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'WHICH_BUILD' ) } stages { stage('copy artifacts') { steps { copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training', selector: buildParameter('WHICH_BUILD')) } } } post { success { mail body: 'SUCCESS', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } unstable { mail body: 'UNSTABLE', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } failure { mail body: 'FAILURE', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } changed { mail body: 'CHANGED', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } } }