ium_434784/eval.Jenkinsfile

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-05-16 21:19:00 +02:00
pipeline {
agent any;
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying data artifacts',
name: 'BUILD_SELECTOR_DATASET'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying training artifacts',
name: 'BUILD_SELECTOR_TRAINING'
)
}
stages {
stage('copy-artifacts')
{
steps
{
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR_TRAINING'))
}
}
stage('evaluation') {
steps {
script {
def image = docker.build('dock')
image.inside{
sh 'chmod +x evaluation.py'
sh 'python3 evaluation.py'
}
}
}
}
}