ium_434784/eval.Jenkinsfile
Maciej Sobkowiak 584f623294
Some checks failed
s434784-evaluation/pipeline/head There was a failure building this commit
s434784-training/pipeline/head This commit looks good
Added evaluation
2021-05-16 21:19:00 +02:00

40 lines
1.1 KiB
Plaintext

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'
}
}
}
}
}