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

This commit is contained in:
Kacper Dudzic 2022-04-24 18:03:25 +02:00
parent b0e1ecd6a8
commit 4664e19d2e

9
lab6/Jenkinsfile vendored
View File

@ -2,6 +2,13 @@ pipeline {
agent { agent {
dockerfile true dockerfile true
} }
parameters {
string(
defaultValue: '100',
description: 'Example training parameter',
name: 'EPOCHS_NUM'
)
}
stages { stages {
stage('Stage 1') { stage('Stage 1') {
steps { steps {
@ -10,7 +17,7 @@ pipeline {
copyArtifacts filter: '*', projectName: 's449288-create-dataset' copyArtifacts filter: '*', projectName: 's449288-create-dataset'
echo 'Datasets copied' echo 'Datasets copied'
echo 'Conducting simple regression model test' echo 'Conducting simple regression model test'
sh 'python3 simple_regression.py' sh 'python3 simple_regression.py $EPOCHS_NUM'
echo 'Model and predictions saved' echo 'Model and predictions saved'
sh 'head lego_reg_results.csv' sh 'head lego_reg_results.csv'
sh 'ls -lh lego_reg_model' sh 'ls -lh lego_reg_model'