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