ium_444507/Jenkinsfile_evaluation

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-05-02 00:31:26 +02:00
pipeline {
agent {
docker { image 's444507_create_dataset_image:latest' }
}
parameters {
2022-05-02 01:21:01 +02:00
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts.', name: 'BUILD_SELECTOR')
2022-05-02 00:31:26 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages {
stage('Get arifacts') {
steps {
2022-05-16 10:42:07 +02:00
copyArtifacts filter:'*', projectName: 's444507-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts filter:'*', projectName: '444507-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts filter:'*', projectName: 's444507-evaluation/master', selector: buildParameter('BUILD_SELECTOR'), optional: true
2022-05-02 00:31:26 +02:00
}
}
stage('Run evaluation') {
steps {
2022-05-02 01:19:59 +02:00
sh "python3 ./lab06_evaluation.py ${currentBuild.number}"
2022-05-02 00:31:26 +02:00
}
}
}
post {
2022-05-02 01:56:16 +02:00
success {
2022-05-02 02:08:51 +02:00
archiveArtifacts artifacts: 'metrics.*', followSymlinks: false
2022-05-02 01:56:16 +02:00
}
2022-05-02 00:31:26 +02:00
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}