27 lines
696 B
Groovy
27 lines
696 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
parameters {
|
|
string(
|
|
defaultValue: '100',
|
|
description: 'Example training parameter',
|
|
name: 'EPOCHS_NUM'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Stage 1') {
|
|
steps {
|
|
sh 'chmod u+x ./lab5/process_dataset.py ./lab5/simple_regression.py'
|
|
echo 'Processing dataset...'
|
|
sh 'python3 lab5/process_dataset.py'
|
|
echo 'Dataset processed'
|
|
echo 'Conducting simple regression model test'
|
|
sh 'python3 lab5/simple_regression.py $EPOCHS_NUM'
|
|
echo 'Model predictions saved'
|
|
sh 'head lab5/lego_reg_results.csv'
|
|
}
|
|
}
|
|
}
|
|
}
|