ium_434784/eval.Jenkinsfile

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-05-16 21:19:00 +02:00
pipeline {
agent any;
2021-05-16 21:35:29 +02:00
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
2021-05-16 21:19:00 +02:00
)
2021-05-16 21:43:40 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying model artifacts',
name: 'BUILD_SELECTOR_MODEL'
)
2021-05-16 21:53:41 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
2021-05-16 21:35:29 +02:00
}
stages{
stage('copy-artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2021-05-16 21:43:40 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434784-training', selector: buildParameter('BUILD_SELECTOR_MODEL'))
2021-05-16 21:35:29 +02:00
}
}
2021-05-16 21:19:00 +02:00
stage('evaluation') {
steps {
2021-05-16 21:35:29 +02:00
script {
2021-05-16 21:19:00 +02:00
def image = docker.build('dock')
2021-05-16 21:35:29 +02:00
image.inside{
sh 'chmod +x evaluation.py'
sh 'python3 evaluation.py'
}
2021-05-16 21:19:00 +02:00
}
}
}
}
}