Update 'lab7/Jenkinsfile_train'
This commit is contained in:
parent
8876616c56
commit
2aac0952eb
@ -7,23 +7,24 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Stage 1') {
|
stage('Stage 1') {
|
||||||
steps {
|
steps {
|
||||||
sh 'chmod u+x ./lab7/simple_regression_lab7.py'
|
sh 'cd lab7/'
|
||||||
|
sh 'chmod u+x ./simple_regression_lab7.py'
|
||||||
echo 'Copying datasets from create-dataset...'
|
echo 'Copying datasets from create-dataset...'
|
||||||
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
||||||
echo 'Datasets copied'
|
echo 'Datasets copied'
|
||||||
echo 'Conducting simple regression model test'
|
echo 'Conducting simple regression model test'
|
||||||
sh 'python3 lab7/simple_regression_lab7.py'
|
sh 'python3 simple_regression_lab7.py'
|
||||||
echo 'Model and predictions saved'
|
echo 'Model and predictions saved'
|
||||||
sh 'head lab7/lego_reg_results.csv'
|
sh 'head lego_reg_results.csv'
|
||||||
echo 'Archiving model...'
|
echo 'Archiving model...'
|
||||||
sh 'ls -lh lab7/lego_reg_model'
|
sh 'ls -lh lego_reg_model'
|
||||||
sh 'tar -czf lab7/lego_reg_model.tar.gz lab7/lego_reg_model/'
|
sh 'tar -czf lego_reg_model.tar.gz lego_reg_model/'
|
||||||
archiveArtifacts 'lab7/lego_reg_model.tar.gz'
|
archiveArtifacts 'lego_reg_model.tar.gz'
|
||||||
echo 'Model archived'
|
echo 'Model archived'
|
||||||
echo 'Archiving Sacreds output repo...'
|
echo 'Archiving Sacreds output repo...'
|
||||||
sh 'ls -lh lab7/runs/*/'
|
sh 'ls -lh runs/*/'
|
||||||
sh 'tar -czf lab7/sacred_runs.tar.gz lab7/runs/'
|
sh 'tar -czf sacred_runs.tar.gz runs/'
|
||||||
archiveArtifacts 'lab7/sacred_runs.tar.gz'
|
archiveArtifacts 'sacred_runs.tar.gz'
|
||||||
echo 'Sacreds repo archived'
|
echo 'Sacreds repo archived'
|
||||||
echo 'Launching the s449288-evaluation job...'
|
echo 'Launching the s449288-evaluation job...'
|
||||||
build job: 's449288-evaluation/master/'
|
build job: 's449288-evaluation/master/'
|
||||||
|
Loading…
Reference in New Issue
Block a user