2022-04-24 15:07:23 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
2022-04-24 16:04:46 +02:00
|
|
|
sh 'chmod u+x ./simple_regression.py'
|
|
|
|
echo 'Copying datasets from create-dataset...'
|
|
|
|
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
|
|
|
echo 'Datasets copied'
|
2022-04-24 15:07:23 +02:00
|
|
|
echo 'Conducting simple regression model test'
|
|
|
|
sh 'python3 simple_regression.py'
|
|
|
|
echo 'Model predictions saved'
|
|
|
|
sh 'head lego_linreg_results.csv'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|