ium_434784/eval.Jenkinsfile

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-05-16 21:19:00 +02:00
pipeline {
2021-05-16 22:10:37 +02:00
agent {
dockerfile true
}
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:43:40 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying model artifacts',
name: 'BUILD_SELECTOR_MODEL'
)
2021-05-16 21:53:41 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
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:54:48 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434784-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR_MODEL'))
2021-05-16 21:35:29 +02:00
}
}
2021-05-16 21:19:00 +02:00
stage('evaluation') {
steps {
2021-05-16 21:35:29 +02:00
script {
sh 'chmod +x evaluation.py'
sh 'python3 evaluation.py'
2021-05-16 21:19:00 +02:00
}
}
}
2021-05-16 22:58:56 +02:00
stage('archive-artifacts') {
steps{
archiveArtifacts 'results.txt'
}
}
2021-05-16 21:19:00 +02:00
}
}