ium_444421/evaluation.Jenkinsfile

43 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-04-29 20:55:27 +02:00
pipeline {
agent {
dockerfile true
}
parameters {
2022-05-01 09:38:02 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'training_and_evaluation', name: 'BRANCH', type: 'PT_BRANCH'
2022-04-29 20:55:27 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
2022-05-01 09:38:02 +02:00
stage('Stage 1') {
2022-04-29 20:55:27 +02:00
steps {
2022-05-01 09:38:02 +02:00
git branch: "${params.BRANCH}", url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git'
2022-04-29 21:11:53 +02:00
copyArtifacts filter: '*', projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2022-05-01 09:46:30 +02:00
copyArtifacts filter: '*', projectName:'s444421-training/${BRANCH}/', selector: buildParameter('BUILD_SELECTOR')
2022-04-29 20:55:27 +02:00
copyArtifacts filter: '*', projectName:'s444421-evaluation/training_and_evaluation', optional: true
sh 'ipython ./evaluation.py'
2022-04-29 22:51:30 +02:00
archiveArtifacts artifacts: 'build_accuracy.txt, bilds_accuracy.jpg'
2022-05-01 10:26:40 +02:00
script {
ACC = sh (script: 'tail -n 1 build_accuracy.txt', returnStdout: true).trim()
}
2022-04-29 20:55:27 +02:00
}
}
}
2022-05-01 10:07:25 +02:00
post {
success {
emailext body: 'SUCCESS - ACCURACY: ${ACC}', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'FAILURE', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
aborted {
emailext body: 'ABORTED', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
emailext body: 'CHANGED', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
2022-04-29 20:55:27 +02:00
}