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'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
|
|
|
|
stage('copy-artifacts')
|
|
|
|
{
|
|
|
|
steps
|
|
|
|
{
|
2021-05-16 21:25:47 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2021-05-16 21:19:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('evaluation') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
def image = docker.build('dock')
|
|
|
|
image.inside{
|
|
|
|
sh 'chmod +x evaluation.py'
|
|
|
|
sh 'python3 evaluation.py'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-16 21:22:18 +02:00
|
|
|
}
|
2021-05-16 21:19:00 +02:00
|
|
|
}
|