Kacper Dudzic
4f176de119
Some checks failed
s449288-training/pipeline/head There was a failure building this commit
24 lines
758 B
Groovy
24 lines
758 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
stages {
|
|
stage('Stage 1') {
|
|
steps {
|
|
sh 'chmod u+x ./simple_regression.py'
|
|
echo 'Copying datasets from create-dataset...'
|
|
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
|
echo 'Datasets copied'
|
|
echo 'Conducting simple regression model test'
|
|
sh 'python3 simple_regression.py'
|
|
echo 'Model and predictions saved'
|
|
sh 'head lego_reg_results.csv'
|
|
sh 'ls -lh lego_reg_model'
|
|
echo 'Archiving model...'
|
|
sh 'tar -czf lego_reg_model'
|
|
archiveArtifacts 'lego_reg_model.tar.gz'
|
|
echo 'Model archived'
|
|
}
|
|
}
|
|
}
|
|
} |