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

36 lines
1.1 KiB
Plaintext

pipeline {
agent any;
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying model artifacts',
name: 'BUILD_SELECTOR_MODEL'
)
}
stages{
stage('copy-artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts(fingerprintArtifacts: true, projectName: 's434784-training', selector: buildParameter('BUILD_SELECTOR_MODEL'))
}
}
stage('evaluation') {
steps {
script {
def image = docker.build('dock')
image.inside{
sh 'chmod +x evaluation.py'
sh 'python3 evaluation.py'
}
}
}
}
}
}