ium_444386/Jenkinsfile_evaluation

41 lines
1.8 KiB
Plaintext
Raw Normal View History

2022-04-27 20:18:00 +02:00
pipeline {
agent {
dockerfile true
}
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'training-evaluation', name: 'BRANCH', type: 'PT_BRANCH'
buildSelector(
2022-04-28 19:42:22 +02:00
defaultSelector: upstream(),
2022-04-27 20:18:00 +02:00
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Stage 1') {
steps {
2022-04-27 20:37:23 +02:00
git branch: "${params.BRANCH}", url: 'https://git.wmi.amu.edu.pl/s444386/ium_444386.git'
2022-04-27 21:08:39 +02:00
copyArtifacts filter: 'model.tar.gz', projectName: "s444386-training/${BRANCH}/", selector: buildParameter('BUILD_SELECTOR')
copyArtifacts filter: 'xtest.csv', projectName: "s444386-training/${BRANCH}/", selector: buildParameter('BUILD_SELECTOR')
2022-04-28 20:21:35 +02:00
copyArtifacts filter: 'ytest.csv', projectName: "s444386-training/${BRANCH}/", selector: buildParameter('BUILD_SELECTOR')
copyArtifacts filter: 'eval_results.txt', projectName: 's444386-evaluation/training-evaluation/', optional: true
2022-04-27 20:30:04 +02:00
sh 'tar xvzf model.tar.gz'
2022-04-27 21:06:37 +02:00
sh 'python3 evaluation.py'
2022-04-28 20:21:35 +02:00
archiveArtifacts 'evaluation_acuraccy.txt'
2022-04-27 20:18:00 +02:00
}
}
}
2022-04-28 19:55:54 +02:00
post {
success {
emailext body: 'SUCCESS', subject: 's444386-eval-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'FAILURE', subject: 's444386-eval-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
emailext body: 'UNSTABLE', subject: 's444386-eval-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
emailext body: 'CHANGED', subject: 's444386-eval-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
2022-04-27 20:18:00 +02:00
}