Update 'lab6/Jenkinsfile_eval'
All checks were successful
s449288-training/pipeline/head This commit looks good
s449288-evaluation/pipeline/head This commit looks good

This commit is contained in:
Kacper Dudzic 2022-04-26 19:17:10 +02:00
parent ff02850749
commit 72e3a22c33

View File

@ -4,6 +4,11 @@ pipeline {
}
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Stage 1') {
@ -14,7 +19,7 @@ pipeline {
copyArtifacts filter: 'lego_sets_clean_test.csv', projectName: 's449288-create-dataset'
echo 'Datasets copied'
echo 'Copying model from the training job...'
copyArtifacts filter: 'lego_reg_model.tar.gz', projectName: 's449288-training/master/'
copyArtifacts filter: 'lego_reg_model.tar.gz', projectName: 's449288-training/master/', selector: buildParameter('BUILD_SELECTOR')
echo 'Model copied'
sh 'tar xvzf lego_reg_model.tar.gz'
echo 'Optional copying of the metrics file from previous build...'