ium_s449288/lab5/Jenkinsfile

27 lines
696 B
Plaintext
Raw Normal View History

2022-04-02 15:36:46 +02:00
pipeline {
agent {
2022-04-02 16:40:30 +02:00
dockerfile true
2022-04-02 15:36:46 +02:00
}
2022-04-24 22:51:54 +02:00
parameters {
string(
defaultValue: '100',
description: 'Example training parameter',
name: 'EPOCHS_NUM'
)
}
2022-04-02 15:36:46 +02:00
stages {
stage('Stage 1') {
steps {
2022-05-12 22:30:38 +02:00
sh 'chmod u+x ./lab5/process_dataset.py ./lab5/simple_regression.py'
2022-04-02 15:36:46 +02:00
echo 'Processing dataset...'
2022-05-12 22:30:38 +02:00
sh 'python3 lab5/process_dataset.py'
2022-04-02 15:36:46 +02:00
echo 'Dataset processed'
2022-04-08 18:16:40 +02:00
echo 'Conducting simple regression model test'
2022-05-12 22:30:38 +02:00
sh 'python3 lab5/simple_regression.py $EPOCHS_NUM'
2022-04-08 18:16:40 +02:00
echo 'Model predictions saved'
2022-05-12 22:30:38 +02:00
sh 'head lab5/lego_reg_results.csv'
2022-04-02 15:36:46 +02:00
}
}
}
2022-05-12 22:30:38 +02:00
}