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-02 00:36:05 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2022-05-02 01:15:03 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: '444507-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR')
|
2022-05-02 01:06:55 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, 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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|