ium_434784/eval.Jenkinsfile

30 lines
776 B
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:35:29 +02:00
}
stages{
stage('copy-artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
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
}
}
}
}
}