2022-05-05 20:23:21 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-05-05 20:43:22 +02:00
|
|
|
dockerfile {
|
|
|
|
dir 'lab7'
|
|
|
|
}
|
2022-05-05 20:23:21 +02:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
2022-05-12 22:30:38 +02:00
|
|
|
sh 'chmod u+x ./lab7/simple_regression_lab7.py'
|
2022-05-05 20:23:21 +02:00
|
|
|
echo 'Copying datasets from create-dataset...'
|
|
|
|
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
|
|
|
echo 'Datasets copied'
|
|
|
|
echo 'Conducting simple regression model test'
|
2022-05-12 22:30:38 +02:00
|
|
|
sh 'python3 lab7/simple_regression_lab7.py'
|
2022-05-05 20:23:21 +02:00
|
|
|
echo 'Model and predictions saved'
|
2022-05-12 22:30:38 +02:00
|
|
|
sh 'head lab7/lego_reg_results.csv'
|
2022-05-05 20:23:21 +02:00
|
|
|
echo 'Archiving model...'
|
2022-05-12 22:30:38 +02:00
|
|
|
sh 'ls -lh lab7/lego_reg_model'
|
|
|
|
sh 'tar -czf lab7/lego_reg_model.tar.gz lab7/lego_reg_model/'
|
|
|
|
archiveArtifacts 'lab7/lego_reg_model.tar.gz'
|
2022-05-05 20:23:21 +02:00
|
|
|
echo 'Model archived'
|
2022-05-05 20:27:36 +02:00
|
|
|
echo 'Archiving Sacreds output repo...'
|
2022-05-12 22:30:38 +02:00
|
|
|
sh 'ls -lh lab7/runs/*/'
|
|
|
|
sh 'tar -czf lab7/sacred_runs.tar.gz lab7/runs/'
|
|
|
|
archiveArtifacts 'lab7/sacred_runs.tar.gz'
|
2022-05-05 20:27:36 +02:00
|
|
|
echo 'Sacreds repo archived'
|
2022-05-05 20:23:21 +02:00
|
|
|
echo 'Launching the s449288-evaluation job...'
|
|
|
|
build job: 's449288-evaluation/master/'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
emailext body: 'SUCCESS', subject: 's449288-training build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
failure {
|
|
|
|
emailext body: 'FAILURE', subject: 's449288-training build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
unstable {
|
|
|
|
emailext body: 'UNSTABLE', subject: 's449288-training build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
changed {
|
|
|
|
emailext body: 'CHANGED', subject: 's449288-training build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
}
|
2022-05-12 22:30:38 +02:00
|
|
|
}
|