ium_444507/Jenkinsfile_evaluation
Adam Wojdyla bca2f97564
All checks were successful
s444507-evaluation/pipeline/head This commit looks good
444507-training/pipeline/head This commit looks good
rm artifacts
2022-05-02 01:55:40 +02:00

30 lines
1.2 KiB
Plaintext

pipeline {
agent {
docker { image 's444507_create_dataset_image:latest' }
}
parameters {
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-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: '444507-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-evaluation/master', selector: buildParameter('BUILD_SELECTOR'), optional: true
}
}
stage('Run evaluation') {
steps {
sh "python3 ./lab06_evaluation.py ${currentBuild.number}"
}
}
}
post {
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}