2022-05-06 21:05:15 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
|
|
|
parameters {
|
2022-05-06 22:29:05 +02:00
|
|
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'From which build copy content',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
2022-05-06 21:05:15 +02:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('checkout: Check out from version control') {
|
|
|
|
steps {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: ' */master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
|
|
|
|
}
|
|
|
|
}
|
2022-05-06 23:43:45 +02:00
|
|
|
stage('Copy artifacts') {
|
2022-05-06 21:05:15 +02:00
|
|
|
steps {
|
2022-05-06 23:26:54 +02:00
|
|
|
copyArtifacts filter: '*', projectName: 's444463-evaluation/master', optional: true
|
2022-05-06 23:50:15 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444463-training/$BRANCH', selector: buildParameter('BUILD_SELECTOR')
|
2022-05-06 22:32:37 +02:00
|
|
|
copyArtifacts filter: '*', projectName: 's444463-create-dataset'
|
2022-05-06 23:41:45 +02:00
|
|
|
}
|
|
|
|
}
|
2022-05-06 23:43:45 +02:00
|
|
|
stage('scripts') {
|
2022-05-06 23:41:45 +02:00
|
|
|
steps {
|
2022-05-06 22:32:37 +02:00
|
|
|
sh 'python3 ./evaluation.py'
|
2022-05-06 22:39:09 +02:00
|
|
|
archiveArtifacts artifacts: "metrics.txt, metrics.png"
|
2022-05-06 21:05:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
emailext body: "Model successfully evaluation", subject: "Model evaluation 444463", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
|
|
|
}
|
|
|
|
|
|
|
|
failure {
|
|
|
|
emailext body: "evaluation failure", subject: "Model evaluation 444463", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|