pipeline { agent { docker { image 's444507_create_dataset_image:latest' } } parameters { string(name: 'epoch', defaultValue: '1000', description: 'Number of epochs to train model.') buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR') gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH' } stages { stage('Get arifacts') { steps { copyArtifacts fingerprintArtifacts: true, projectName: 's444507-evaluation', selector: lastSuccessful() copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful() copyArtifacts fingerprintArtifacts: true, projectName: 's444507-training/${BRANCH}', selector: lastSuccessful() } } stage('Run evaluation') { steps { sh "python3 ./lab06_evaluation.py $BUILD_SELECTOR" } } } post { success { archiveArtifacts artifacts: 'metrics.csv', followSymlinks: false } always { emailext body: "${currentBuild.currentResult}", subject: 's444507-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' } } }