Revert "Add model build selector"
All checks were successful
s444409-evaluation/pipeline/head This commit looks good
s444409-training/pipeline/head This commit looks good

This reverts commit f42a5aca2f.
This commit is contained in:
Marcin Kostrzewski 2022-05-06 18:45:04 +02:00
parent f42a5aca2f
commit cdf349e089

View File

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