From ad21010147720bbe087dee96462207fcf36d4868 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Wed, 11 May 2022 20:30:33 +0200 Subject: [PATCH] Use build selector --- Jenkinsfile-predict-s444356 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile-predict-s444356 b/Jenkinsfile-predict-s444356 index bfacc45..8be4406 100644 --- a/Jenkinsfile-predict-s444356 +++ b/Jenkinsfile-predict-s444356 @@ -6,12 +6,17 @@ pipeline { } parameters { file 'input_example.json' + buildSelector( + defaultSelector: lastSuccessful(), + description: 'Which build to use for copying artifacts', + name: 'BUILD_SELECTOR' + ) } stages { stage('Get dataset from artifact') { steps { - copyArtifacts projectName: 's444356-training/master', selector: lastSuccessful() + copyArtifacts projectName: 's444356-training/master', selector: buildParameter('BUILD_SELECTOR') } } stage('Predict values using model from artifact') {