Jakub Pogodziński
21a8e22968
Some checks failed
s437622-evaluation/pipeline/head There was a failure building this commit
59 lines
1.9 KiB
Plaintext
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: '437622-create-dataset', selector: buildParameter('BUILD_SELECTOR'))
|
|
copyArtifacts(fingerprintArtifacts: true, projectName: '437622-training/master', selector: buildParameter('BUILD_SELECTOR_Train'))
|
|
copyArtifacts(fingerprintArtifacts: true, optional:true, projectName: '437622-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'
|
|
}
|
|
}
|
|
} |