2022-05-01 10:37:24 +02:00
|
|
|
def ACC = ''
|
|
|
|
|
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-04-29 20:55:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-01 10:07:25 +02:00
|
|
|
post {
|
|
|
|
success {
|
2022-05-01 10:37:24 +02:00
|
|
|
emailext body: 'SUCCESS', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
2022-05-01 10:07:25 +02:00
|
|
|
}
|
|
|
|
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
|
|
|
}
|