49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
|
pipeline {
|
||
|
agent {
|
||
|
dockerfile true
|
||
|
}
|
||
|
|
||
|
parameters {
|
||
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
||
|
buildSelector(
|
||
|
defaultSelector: lastSuccessful(),
|
||
|
description: 'Which build to use for copying artifacts',
|
||
|
name: 'BUILD_SELECTOR'
|
||
|
)
|
||
|
}
|
||
|
|
||
|
stages {
|
||
|
stage('Copy artifacts') {
|
||
|
steps {
|
||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444498-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444498-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR')
|
||
|
copyArtifacts filter: "eval_result.txt", projectName: 's444498-evaluation/${BRANCH}', optional: true
|
||
|
}
|
||
|
}
|
||
|
stage("Evaluation") {
|
||
|
steps {
|
||
|
sh "chmod u+x ./evaluation.py"
|
||
|
sh "python3 ./evaluation.py"
|
||
|
archiveArtifacts artifacts: "eval_result.txt", onlyIfSuccessful: true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
success {
|
||
|
emailext body: "SUCCESS", subject: "s444498-evaluation", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
||
|
}
|
||
|
|
||
|
failure {
|
||
|
emailext body: "FAILURE", subject: "s444498-evaluation", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
||
|
}
|
||
|
|
||
|
unstable {
|
||
|
emailext body: 'UNSTABLE', subject: "s444498-evaluation", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
||
|
}
|
||
|
|
||
|
changed {
|
||
|
emailext body: 'CHANGED', subject: "s444498-evaluation", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
||
|
}
|
||
|
}
|
||
|
}
|