lab6 work
Some checks failed
s449288-evaluation/pipeline/head There was a failure building this commit
s449288-training/pipeline/head There was a failure building this commit

This commit is contained in:
Kacper Dudzic 2022-04-26 14:56:10 +02:00
parent eda9bf3a8a
commit ea94753ef4

View File

@ -2,6 +2,9 @@ pipeline {
agent { agent {
dockerfile true dockerfile true
} }
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages { stages {
stage('Stage 1') { stage('Stage 1') {
steps { steps {
@ -10,7 +13,7 @@ pipeline {
copyArtifacts filter: 'lego_sets_clean_test.csv', projectName: 's449288-create-dataset' copyArtifacts filter: 'lego_sets_clean_test.csv', projectName: 's449288-create-dataset'
echo 'Datasets copied' echo 'Datasets copied'
echo 'Copying model from the training job...' 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/$BRANCH/'
echo 'Model copied' echo 'Model copied'
sh 'tar xvzf lego_reg_model.tar.gz' sh 'tar xvzf lego_reg_model.tar.gz'
echo 'Optional copying of the metrics file from previous build...' echo 'Optional copying of the metrics file from previous build...'