Add model build selector
Some checks failed
s444409-evaluation/pipeline/head There was a failure building this commit
s444409-training/pipeline/head There was a failure building this commit

This commit is contained in:
Marcin Kostrzewski 2022-05-06 18:42:50 +02:00
parent a0ccb6e3bd
commit f42a5aca2f

View File

@ -10,7 +10,12 @@ pipeline {
buildSelector( buildSelector(
defaultSelector: lastSuccessful(), defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts', description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR' name: 'BRANCH_SELECTOR'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying model',
name: 'MODEL_BUILD_SELECTOR'
) )
} }
@ -24,14 +29,14 @@ pipeline {
copyArtifacts projectName: 's444409-create-dataset', selector: lastSuccessful(), optional: true copyArtifacts projectName: 's444409-create-dataset', selector: lastSuccessful(), optional: true
} }
} }
stage('Get model trend') { stage('Get model') {
steps { steps {
copyArtifacts projectName: "s444409-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true copyArtifacts projectName: "s444409-training/${params.BRANCH}/", selector: buildParameter('MODEL_BUILD_SELECTOR')
} }
} }
stage('Get previous trend') { stage('Get previous trend') {
steps { steps {
copyArtifacts projectName: "s444409-evaluation/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true copyArtifacts projectName: "s444409-evaluation/${params.BRANCH}/", selector: buildParameter('BRANCH_SELECTOR'), optional: true
} }
} }
stage('Evaluate model and write results to file') { stage('Evaluate model and write results to file') {