ium_s449288/lab6/Jenkinsfile

38 lines
1.3 KiB
Plaintext
Raw Normal View History

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'
2022-04-24 17:10:42 +02:00
echo 'Model and predictions saved'
sh 'head lego_reg_results.csv'
2022-04-24 17:15:16 +02:00
sh 'ls -lh lego_reg_model'
2022-04-24 17:28:49 +02:00
echo 'Archiving model...'
2022-04-24 17:34:59 +02:00
sh 'tar -czf lego_reg_model.tar.gz lego_reg_model/'
2022-04-24 17:28:49 +02:00
archiveArtifacts 'lego_reg_model.tar.gz'
echo 'Model archived'
2022-04-24 15:07:23 +02:00
}
}
2022-04-24 17:51:33 +02:00
}
post {
success {
emailext body: 'SUCCESS', subject: 'Build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'FAILURE', subject: 'Build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
emailext body: 'UNSTABLE', subject: 'Build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
emailext body: 'CHANGED', subject: 'Build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
2022-04-24 15:07:23 +02:00
}
2022-04-24 17:51:33 +02:00
}
2022-04-24 15:07:23 +02:00
}