ium_s437622/Jenkinsfile_evaluation
Jakub Pogodziński 688d94d11d
Some checks failed
s437622-evaluation/pipeline/head There was a failure building this commit
added s
2021-05-16 14:55:30 +02:00

59 lines
1.9 KiB
Plaintext

pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying train artifacts',
name: 'BUILD_SELECTOR_Train')
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying evaluation artifacts',
name: 'BUILD_SELECTOR_Evaluation')
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages {
stage('copy artifacts'){
steps {
copyArtifacts(fingerprintArtifacts: true, projectName: 's437622-create-dataset', selector: buildParameter('BUILD_SELECTOR'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's437622-training/master', selector: buildParameter('BUILD_SELECTOR_Train'))
copyArtifacts(fingerprintArtifacts: true, optional:true, projectName: 's437622-evaluation/master', selector: buildParameter('BUILD_SELECTOR_Evaluation'))
}
}
stage('evaluation') {
steps {
script {
def img = docker.build('jpogodzinski/ium:1')
img.inside {
sh 'chmod +x evaluation.py'
sh 'python3 ./evaluation.py'
}
}
}
}
stage('archiveArtifacts') {
steps{
archiveArtifacts 'evaluation.txt'
archiveArtifacts 'evaluation.png'
}
}
}
post {
success {
emailext body: 'Success', subject: 's437622 evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'Failed', subject: 's437622 evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}