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
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
2022-04-08 18:16:40 +02:00
|
|
|
sh 'chmod u+x ./process_dataset.py ./simple_regression.py'
|
2022-04-02 15:36:46 +02:00
|
|
|
echo 'Processing dataset...'
|
|
|
|
sh 'python3 process_dataset.py'
|
|
|
|
echo 'Dataset processed'
|
2022-04-08 18:16:40 +02:00
|
|
|
echo 'Conducting simple regression model test'
|
|
|
|
sh 'python3 simple_regression.py'
|
|
|
|
echo 'Model predictions saved'
|
2022-04-22 22:54:05 +02:00
|
|
|
sh 'head lego_linreg_results.csv'
|
2022-04-02 15:36:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-02 16:50:16 +02:00
|
|
|
}
|