ium_444463/evaluation.Jenkinsfile

40 lines
1.4 KiB
Plaintext
Raw Normal View History

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']]])
}
}
stage('bash script') {
steps {
2022-05-06 22:29:05 +02:00
withEnv(["BRANCH=${params.BRANCH}"]) {
copyArtifacts filter: '*', projectName: 's444463-training/$BRANCH'
2022-05-06 21:05:15 +02:00
copyArtifacts filter: '*', projectName: 's444463-create-dataset'
sh 'python3 ./evaluation.py'
2022-05-06 22:29:05 +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"
}
}
}