ium_444463/evaluation.Jenkinsfile
2022-05-06 21:10:50 +02:00

40 lines
1.3 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
string (
defaultValue: '10',
description: 'Epochs number',
name: 'EPOCH',
trim: false
)
}
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 {
withEnv(["EPOCH=${params.EPOCH}"]) {
copyArtifacts filter: '*', projectName: 's444463-training/master'
copyArtifacts filter: '*', projectName: 's444463-create-dataset'
sh 'python3 ./evaluation.py'
archiveArtifacts artifacts: "metrics.txt"
}
}
}
}
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"
}
}
}