ium_444501/evaluation.Jenkinsfile
s444501 23a9d735c5
All checks were successful
s444501-training/pipeline/head This commit looks good
s444501-evaluation/pipeline/head This commit looks good
.
2022-05-01 17:19:50 +02:00

40 lines
1.2 KiB
Plaintext

pipeline {
agent {
docker {image 'zadanie'}
}
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: 's444501-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: 's444501-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts fingerprintArtifacts: true, projectName: 's444501-evaluation/master', selector: buildParameter('BUILD_SELECTOR'), optional: true
}
}
stage('Evaluate model') {
steps {
withEnv([]) {
sh 'python eval.py'
}
}
}
stage('Archive model') {
steps {
archiveArtifacts artifacts: 'eval_results.json, metrics.png'
}
}
}
post {
always {
emailext body: "${currentBuild.currentResult}", subject: 's444501-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}