2022-05-01 16:56:56 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {image 'zadanie'}
|
|
|
|
}
|
|
|
|
parameters {
|
2022-05-01 17:19:50 +02:00
|
|
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
2022-05-01 16:56:56 +02:00
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
2022-05-01 17:19:50 +02:00
|
|
|
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
|
2022-05-01 16:56:56 +02:00
|
|
|
}
|
|
|
|
}
|
2022-05-01 17:19:50 +02:00
|
|
|
stage('Evaluate model') {
|
2022-05-01 16:56:56 +02:00
|
|
|
steps {
|
2022-05-01 17:19:50 +02:00
|
|
|
withEnv([]) {
|
|
|
|
sh 'python eval.py'
|
2022-05-01 16:56:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive model') {
|
|
|
|
steps {
|
2022-05-01 17:19:50 +02:00
|
|
|
archiveArtifacts artifacts: 'eval_results.json, metrics.png'
|
2022-05-01 16:56:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2022-05-01 17:19:50 +02:00
|
|
|
emailext body: "${currentBuild.currentResult}", subject: 's444501-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
2022-05-01 16:56:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|