Update 'lab6/Jenkinsfile_eval'
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-25 22:55:09 +02:00
parent 60ca771c06
commit 789ecba3dc

View File

@ -10,11 +10,11 @@ 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' copyArtifacts filter: 'lego_reg_model.tar.gz', projectName: 's449288-training/master/'
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...'
copyArtifacts filter: 'eval_results.txt', projectName: 's449288-evaluation', optional: 'True' copyArtifacts filter: 'eval_results.txt', projectName: 's449288-evaluation/master/', optional: 'True'
echo 'Metrics file copied if it did not exist' echo 'Metrics file copied if it did not exist'
echo 'Evaluating model...' echo 'Evaluating model...'
sh 'python3 evaluate.py' sh 'python3 evaluate.py'